I’m sorry, as I’m sure this has been posted a million times before, but I’ve read other posts & done a few tutorials and I just can’t get the hang of this.
All I want to do is pass a variable from a php script to a flash movie. My flash code is as follows:
var vars = new LoadVars();
vars.onLoad = function(success)
{
for(var prop in this )
{
trace ("key " + prop + " = " + this[prop]);
}
}
vars.load("c.php");
and the php script is just:
<?php
echo "hello=blah";
?>
thanks, and I’m sorry for such a basic question, I just can’t see why this doesn’t work. (the .fla and .php are both in the same directory)