Hu guys, I'm a newbie to flex so any help is welcome. I'll be brief:
I want to load and manipulate an XML file into my flex enviroment so 
I went to the live doc and copy-pasted the following code within my 
<mx:Script> tag:

<mx:Script>
<![CDATA[
1.var externalXML:XML;
2.var loader:URLLoader = new URLLoader();
3.var request:URLRequest = new URLRequest("xmlFile.xml");
4.loader.load(request);
5.loader.addEventListener(Event.COMPLETE, onComplete);
6.function onComplete(event:Event):void {
7.var loader:URLLoader = URLLoader(event.target);
8.externalXML = new XML(loader.data);
9.trace(externalXML.toXMLString());
10.}
]]>
</mx:Script>

I get a compiling time error at lines 4 and 5. It says:

Access to undefined property loader
Acces to undefined property request
Access to undefined property onComplete

:O Any ideas what this could be and how to solve it!?

Thanks!
Guille









--
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/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> 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/
 


Reply via email to