AS3 EventDispatcher Example


/ 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.EventDispatcher;
  4. /**
  5. * ...
  6. * @author Jeff Nehlsen
  7. */
  8. public class TestDispatcher extends EventDispatcher
  9. {
  10. public function TestDispatcher()
  11. {
  12. this.dispatchEvent(new CustomEvent(CustomEvent.EVENT_CUSTOM, false, false));
  13. }
  14. }
  15.  
  16. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.