Hello everyone, I ask for help. In Flash Builder 4.5, I try to connect to an XML file, but something doesn't work.
Below is the code (more precisely, a piece of code before the error):
<fx:Script> <![CDATA[ import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.xml; var myXML: XML = new XML(); var XML_URL: String = "C:\req.xml"; var myXMLURL: URLRequest = new URLRequest(XML_URL); var myLoader: URLLoader = new URLLoader(myXMLURL); myLoader.addEventListener(Event.COMPLETE, xmlLoaded);
and here on the last line the environment gives an error:
This line contains several selections:
-1120: Handling of a non-existent myLoader property.
-1120: Handling of a non-existent xmlLoaded property.
I am a newcomer to AS 3 and just can’t understand what my mistake is. Help, who can, please.