well, I rad a tutorial here somewhere that explained how to interchange data between a .swf and .php file. Followed its instructions, replacing the localhost file it said to use with the url of the .php since I dont have a private server set up. It’s not working, and I can’t find anythign wrong with it, so I’m hoping osmeoine who knows what they’re doign could point it out.
In the .php:
<pre>
[SIZE=2]<?php
$x = “abc”;
echo ’
<object width=“550” height=“400”>
<param name=“movie” value=“FlashSide.swf”>
<embed src=“FlashSide.swf” width=“550” height = “400”>
</embed>
</object>
';
print “myVar=$x”;
?>
[/SIZE]
</pre>
inthe .swf I have a movie clip with this code on it:
<pre>
onClipEvent (load) {
loadVariables(“http://dhost.info/lfpgame/PHPSide.php”, this, “GET”);
}
</pre>
in that MC i have a dynamic text with variable myVar.
Ive uploaded them both, and the result comes out as the .swf with nothing in the textbox, then “myVar=abc” printed to the screen. Anyone know whats wrong?