Sounds like a scoping issue, try this instead: public function loadPLMS():Void{ tacticsXML.load( URL ); tacticsXML.onLoad = mx.utils.Delegate.create(this,doLoad); }
function doLoad( success ) { if(success){ Alert.show( tacticsXML.parentNode.toString() ); } } At 02:22 PM 7/28/2005, Mehdi, Agha wrote: >Hi All, > >I am trying to load XML in a class's method, which is called by my Flex >app after the app loads and have onLoad function to process the XML once >it loads. Code: > >-------------------------------------------------------------------------- > >public function loadPLMS():Void{ > > tacticsXML.load( "[URL]" ); > > tacticsXML.onLoad = function( success ) > > { > > Alert.show( tacticsXML.parentNode.toString() ); > > } > >The Alert doesn't show me anything. If I try to dump success, it does show >me "true". Am I doing anything wrong here? > >Thanks > >Agha Mehdi > >IDT - eBusiness Program Manager > >Work: 408.284.8239 > >Fax: 408.284.2766 > > > >-- >Flexcoders Mailing List >FAQ: ><http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt >Search Archives: ><http://www.mail-archive.com/flexcoders%40yahoogroups.com>http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > >---------- >YAHOO! GROUPS LINKS > > * Visit your group > "<http://groups.yahoo.com/group/flexcoders>flexcoders" on the web. > * > * To unsubscribe from this group, send an email to: > * > <mailto:[EMAIL PROTECTED]>[EMAIL PROTECTED] > > * > * Your use of Yahoo! Groups is subject to the > <http://docs.yahoo.com/info/terms/>Yahoo! Terms of Service. > > >---------- -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/