AS3 FlashDevelop New Event Template


/ Published in: ActionScript 3
Save to your folder(s)



Copy this code and paste it in your HTML
  1. package
  2. {
  3. import flash.events.Event;
  4.  
  5. public class NewEvent extends Event
  6. {
  7.  
  8. public function NewEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false)
  9. {
  10. super(type, bubbles, cancelable);
  11.  
  12. }
  13.  
  14. public override function clone():Event
  15. {
  16. return new NewEvent(type, bubbles, cancelable);
  17. }
  18.  
  19. public override function toString():String
  20. {
  21. return formatToString("NewEvent", "type", "bubbles", "cancelable", "eventPhase");
  22. }
  23.  
  24. }
  25.  
  26. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.