Thursday, December 24, 2009

How do I detect a click using actionscript when clicking an empty stage?

Obviously you can check when clicking a button with the on(press) or on(release) commands, but what if I wanted to check if the user is clicking anywhere at any point in the program?How do I detect a click using actionscript when clicking an empty stage?
//ActionScript 3.0


stage.addEventListener (MouseEvent. CLICK, clickHandler);





function clickHandler (IN_Event: MouseEvent):void {





trace(';Click event on stage';);


}
  • facial peels
  • cleanses
  • serum cream
  • numbering
  • No comments:

    Post a Comment