I’ve been following this tutorial on using Flash with PHP and mySQL:
http://www.kirupa.com/developer/actionscript/flash_php_mysql.htm
And I’m sort of stumbling at the first fence. I’ve got the dynamic text field set up with the variable myVar inside a movieclip with the actionScript:
onClipEvent (load) {
loadVariables(“http://www.mywebsite.co.uk/stuff/phpflash/test.php”, this, “GET”);
}
And I’ve made and uploaded test.php:
<?php
$x = “abc”;
print “myVar=$x”;
?>
I’ve opened test.php, and it says ‘myVar=abc’ like it should.
Now when I try to preview my flash movie I get this error message:
Error opening URL ‘http://www.mywebsite.co.uk/stuff/phpflash/test.php?myVar=<p+align%3D"center"><%2Fp>’
As far as I can tell, its sending a bunch of data from the text field to the PHP which is mucking it up (I’m guessing this because when I change the text field’s alignment from center to left the error changes to ‘align%3D%22left’).
Does anyone know what I’m doing wrong?
Thanks.