I thought about something like this too. So, let's say we have the followig code: public function aFunction():XML { public var publicParameter:XML = new XML; addEventListener( Event.SomeEvent, responderEventHandler ); private function responderEventHandler(event:Event):void { event.target.publicParameter = someXml; } return publicParameter; }
If we are talking about getting XML from the Server then: return publicParameter is most likely executed before: event.target.publicParameter = someXml; Am I wrong here? --- In flexcoders@yahoogroups.com, "Mike Krotscheck" <[EMAIL PROTECTED]> wrote: > > foo.addEventListener( Event.SomeEvent, responderEventHandler ); > > > > private function responderEventHandler(event:Event):void > > { > > event.target.publicParameter = "bar"; > > } > > > > Michael Krotscheck > > Senior Developer > > > RESOURCE INTERACTIVE > > <http://www.resource.com/> www.resource.com <http://www.resource.com> > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > ______________________________________________________________________ __ > _______ > > We support privacy and confidentiality. Please delete this email if it > was received in error. > > > What's new :: > > Capitalize on the social web | The Open Brand, a new book by Kelly > Mooney and Dr. Nita Rollins, available March 2008 | www.theopenbrand.com > > ________________________________ > > From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On > Behalf Of markgoldin_2000 > Sent: Tuesday, March 25, 2008 1:31 PM > To: flexcoders@yahoogroups.com > Subject: [flexcoders] Can a Listener return a value > > > > Can a Listener program return a value back to a program that set this > listener up? > > Thanks >