AS3 Expanded Custom Event Class


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



Copy this code and paste it in your HTML
  1. package
  2. {
  3. import flash.events.Event;
  4.  
  5. /**
  6. * ...
  7. * @author Jeff Nehlsen
  8. */
  9. public class CustomEvent extends Event
  10. {
  11. public static const EVENT_DEFAULT:String = "event1";
  12. public static const EVENT_CUSTOM:String = "event2";
  13.  
  14. public function CustomEvent(type:String = CustomEvent.EVENT_DEFAULT, bubbles:Boolean = false, cancelable:Boolean = false)
  15. {
  16. super(type, bubbles, cancelable);
  17. }
  18. }
  19. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.