http://livedocs.adobe.com/flex/3/langref/flash/net/URLLoader.html
import flash.net.*; I'm pretty new to Flex as well, but having the docs bookmarked has come in very handy on a number of ocassions so far :) http://livedocs.adobe.com/flex/3/langref/index.html On Wed, May 21, 2008 at 1:37 PM, wild.katana <[EMAIL PROTECTED]> wrote: > I have this code: var myXML:XML = new XML(); > var XML_URL:String = > "http://gdata.youtube.com/feeds/api/videos?vq=football+-soccer&orderby=published&start-index=11&max-results=10"; > var myXMLURL:URLRequest = new URLRequest(XML_URL); > var myLoader:URLLoader = new URLLoader(myXMLURL); > myLoader.addEventListener("complete", xmlLoaded); > > function xmlLoaded(event:Event):void > { > myXML = XML(myLoader.data); > trace("Data loaded."); > } > > And I want to read the XML file into a XML object in Flex, so that I > can access different elements of it easier. But it is throwing up two > errors when I try to compile it: > > 1120: Access of undefined property myLoader. > 1120: Access of undefined property xmlLoaded. > > What am I doing wrong? Do I need to import any special things first? I > am still pretty new to Flex... > > -- A byte walks into a bar and orders a pint. Bartender asks him "What's wrong?" Byte says "Parity error." Bartender nods and says "Yeah, I thought you looked a bit off."