04-08-2009

Actionscript3 Click handler eventlistener in as3

to capture mouse click event and excute a function :

myDisplayObject.addEventListener(MouseEvent.CLICK, function(event:MouseEvent){
	trace(event.type);
	trace (event.target);
});
// you can use this import statement in the package
import flash.events.*;
 

Comments:

Your comment:

»

 

[x]