private var myXML:XML;
private var myLoader:URLLoader = new URLLoader();
private var myRequester:URLRequest = new URLRequest("http://www.myaddress.com/library.xml");
myLoader.load(myRequester); //This is the problem line
I get two of the same errors:
1120 Access of undefiend property myLoader
1120 Access of undefiend property myRequester
This worked flawlessly when i was using it in AS3 in Flash CS4.
According to the documentation this should work fine in flex 4 as well. Is this a beta problem? How do I solve this?
Do a clean and build. Make sure the import statements are in the file (although I'd expect different errors if you didn't).
I would create a brand new project with just those lines in it and see if it still reports the error.
Flex SDK Developer
Adobe Systems Inc.