I followed the tutorial word for word and even the first basic part didnt work. I got "_level0.instance1.myVar" in my dynamic text box instead of my variable. The text box's variable name is myVar. The AS I wrote is as follows
onClipEvent (load) {
loadVariables("/mysite/php.php", this, "GET");
}
and the php is
$x = "abc";
print x;
print "myVar=$x"
?> .
When I acess the PHP page, it displays the info correctly but the SWF gives the error mentioned above. I would really appreciate some help.
Since you're using MX2004, you'll be wanting to use LoadVars() instead of LoadVariables:
var myData = new LoadVars(); BioRUST.com :: Tutorials >> Dumping mySQL Tables to HTML:: This might be useful if you want to display all the data for review reasons. Secondly, the code shown does not require you to know the mySQL table field http://www.biorust.com/tutorials/detail/221/en/HOME |
myData.load("opl.php");
myData.onLoad = function(){
if(this.myvar != undefined){
myVar = this.myvar;
}else{
myVar = "Loading failed!";
}
}
$x = "abc";
echo "myvar=" . $x;
?>
Where is that tutorial?
I'd say
$x = "abc";
print x;
print "myVar=$x"
?>
should be
$x = "abc"; // next line not needed, so removed
print "&myVar=$x"; //notice the ;
?>
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|