I'm trying to read a XML file and output the values, but i'm getting a 1120: Access of undefined property URLRequest. error. Any ideas?
Here's my code:
public class Main extends MovieClip
{
public function Main()
{
var loader:URLLoader = new URLLoader();
loader.addEventListener(Event.COMPLETE, loadXML);
function loadXML(e:Event):void
{
var xml:XML = new XML(e.target.data);
trace(xml);
}
loader.load(new URLRequest("http://127.0.0.1:8090/NewProj/index.php?tipo=get"));
}
}
Thanks.