|
-
 Originally Posted by 5TonsOfFlax
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|