Hi, I am trying to import data from a text file and have come across a tutorial on loading data from external documents on the Adobe Help Resource Center for Flex 3.0. I have followed the instructions on their tutorial and oddly when I type the code in one way I get no errors but when typed another, equally valid way, I get errors. I am wondering why this is happening because I find things like this extremely annoyning. ;-)
Here are the two code formats:
This example works fine:
var loader:URLLoader = new URLLoader(new URLRequest("params.txt"));
This code gives the error "1120: Access of undefined property loader"
var request:URLRequest = new URLRequest("params.txt");
var loader:URLLoader = new URLLoader();