Posted By

adrianparr on 02/08/11


Tagged

event new as3 custom dispatch flashdevelop


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

merritt212
scottwatkins


AS3 FlashDevelop New Event Template


 / Published in: ActionScript 3
 

  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  

You need to login to post a comment.