Actionscript addEventListener() function

The addEventListener() method is used to identify the event, and assign the function to be executed to the object that is supposed to be doing the listening.

function onRotateRight(evt:MouseEvent):void {
box.rotation += 20;

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.