Functions as Objects : Function : Function Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Function » Function »

 

Functions as Objects


 

package{
  import flash.display.Sprite;
  import flash.events.MouseEvent;
  public class Main extends Sprite{
    public function Main(){
        addEventListener(MouseEvent.CLICK, onClick);
    }
    function onClick(event:MouseEvent):void {
         trace(" Handle click.");
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Function
» Function