If you use dispatchEvent from any class, any other class that's
listening for it can respond. No scope issues that I can see. I have a
simple example of two classes talking to each other using
EventDispatcher at http://flash-creations.com/notes/sample_emailer.php
if you want it -- click the free download on the right.
Helen
Merrill, Jason wrote:
Helen,
Great, thank you. However, I'm a little confused on how I apply that to
my code I posted. All the MM docs on Event Dispatcher show using it
with Adove classes or components. And how about the scope with my
Webservice event? That scope is outside of my custom class, so how do I
fire the event in my custom class? I can add a property to the listener
object which is the AdminData class instance, but that seems kludgy.
Jason Merrill
Bank of America
Learning & Organizational Effectiveness
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com