Basiclly I’m trying to pull info from a php page on a server and load the echo’d variables.
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if (success) {
trace(this.toString());
} else {
trace("Error loading/parsing LoadVars.");
}
};
my_lv.load("../[test.php](http://test.php)");
var queryString:String = my_lv.toString();
my_lv.decode(queryString);
trace(my_lv.myVar);
There is an exact link in the my_lv.load() function. Here is my php…
<?php
$x = 'Hello World';
echo "myVar=$x";
?>
I’ve looked at a bunch of examples and I can’t figure out whats going on. My success code doesn’t even fire, or it is pulling back nothing so it is undefined. I tried it with a .txt file and just put in the txt file “myVar=Hello World” and that still didn’t work. Thanks for the help guys!