your xml wont be in proper format On Mon, Feb 2, 2009 at 4:56 AM, Akhil Agrawal <[email protected]>wrote:
> > <?xml version="1.0" encoding="utf-8"?> > <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" > layout="absolute"> > <mx:Script> > <![CDATA[ > import flash.events.Event; > import flash.net.URLLoader; > import flash.net.URLRequest; > > var externalXML:XML; > var loader:URLLoader = new URLLoader(); > var request:URLRequest = new URLRequest("test.xml"); > loader.load(request); > loader.addEventListener(Event.COMPLETE,onComplete); > > > function onComplete(event:Event):void > { > var loader:URLLoader = event.target as URLLoader; > if (loader != null) > { > externalXML = new XML(loader.data); > trace(externalXML.toXMLString()); > } > else > { > trace("loader is not a URLLoader!"); > } > } > ]]> > </mx:Script> > > > </mx:Application> > > > when i run this code got error > > 1120: Access of undefined property loader. runtimeparsing/src > runtimeparsing.mxml line 12 > > 1120: Access of undefined property onComplete. runtimeparsing/src > runtimeparsing.mxml line 13 > > plz help me > > thanx > > regards > akhil agrawal > > > > > -- ----------------------------- Regards, HISSAM, ------------------------------ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

