Just curious. I made a custom event handler that is
dispatched from within a class when an XML document is loaded. The
listener is attached to the instance of that class in the FLA. The
attached code to this thread is what is for the class instance.
Does that have to be out there? Is there a cleaner way to do it so
that the code would be away in a class? Just wondering….
Thanks!|||
you can add your listener and dispatch events from within
your class. but i thought you were trying to dispatch an event to
your instance in your fla.|||
Well I need my instance to know when the data is loaded into
the object, but I wish there was a more transparent way to do it. I
guess I could somehow put that stuff into the initiation of the
class….|||
i showed you how to do it in one of your other
threads.
Related posts:
- Custom event handler
- AS3 custom event problem
- Dispatching Custom Event
- Call event handler programatically
- sqlite transaction begin event handler only fires once
Related posts brought to you by Yet Another Related Posts Plugin.