A Flash Developer Resource Site

Results 1 to 12 of 12

Thread: [RESOLVED] Dispatch and Listen for a Global Event

Hybrid View

  1. #1
    Senior Member
    Join Date
    Jan 2006
    Posts
    133
    Quote Originally Posted by 5TonsOfFlax View Post
    2. No, Broadcaster cannot be used "instanceless" because you need an actual EventDispatcher to dispatch events. That instance could have been a bare EventDispatcher, but you need something. If a bare EventDispatcher were used, the class would not need to extend anything.
    Ahh, ok, that makes sense... that you need an instance to dispatch the event... and I really only want 1 instance at any given time.

  2. #2
    Senior Member
    Join Date
    Jan 2006
    Posts
    133
    Got a compile error... _instance should be "static" as well, I think.
    Actionscript Code:
    private static var _instance:Broadcaster = null;

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center