AS3 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_CUSTOM:String = "event2";
  12.  
  13. public function CustomEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false)
  14. {
  15. super(type, bubbles, cancelable);
  16. }
  17. }
  18. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.