OK, I'm pretty good at Actionscript 2.0, but something I never really
understood and now need to.

Core question:  How do I make an event in a custom class, and how do I
make a listener in another class listen for the event?  

EventBroadcaster in the help docs seems to only show how to use it with
Adobe classes and components. Docs on listener are the same.  I know how
to set up listeners for other events, like keypresses and mouse
rollovers.  Easy enough.  But my problem is this (see comments in code
below):

class com.boa.projects.iqrcgenerator.components.AdminData{
        
        private var userData:Object;

        public function wsUserDataByLOB(lobDbId:Number):Void{
                var getUserListResult:Object = new Object();
                getUserListResult =
generatorWebService.GetUserList(lobDbId);
                getUserListResult.onResult = function(oUser){
                        //this works fine, 
                        //I can capture this event result here,
                        //but how do I notify another class?
                        //also what about scope here?
                        //how to set userData as oUser result?
                        //can I fire an event in my AdminData
                        //class from here?
                }
        }
        
        public function getUserData():Object{
                //can't let user get this data
                //until Webserive event is done.
                return userData;
        }
}

Thanks,


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

Reply via email to