Hello, trying to get AS3 things sorted out still, and i am having some trouble here.
I am trying to find an equivalent of the loadVars in AS2.
I want to load a text file with a number of variables on it. ie…
&var1 = something&
&var2 = somethingelse&
… and be able to read those variables.
in AS2, i did this:
[AS]var lv:LoadVars = new LoadVars();
lv.onLoad = function(success:Boolean) {
//trace(lv);
for (var prop in lv) {
if (prop != “onLoad”) {
var temp:String = prop;
parseProp(lv[temp], prop.substring(8));
}
}
};
lv.load(“dirlist.php”);[/AS]
How can i do something like this in AS3? i can load the text in using the loader, but it seems to load the whole text as one long string, not recognizing the variables.
The text does need to come in that current format.
thanks much for any help!
Q