iGuest 3 Report post Posted March 11, 2005 Hi there, im just trying to use php in macromedia flash. to start easy, ive defined a variable in php $Hello="Hello";Then I wroteecho "&variable=$Hello&"; when i try the php file, it prints on the screen : "&variable=Hello&" which is fine.on my flash file, ive written:c= new loadVars();c.onLoad = function () { v = this["variable"];}c.load ([i]my php file[/i]); v being a dynamic text field.but it writes in my textbox: $Hello and not Hello.Anyone could help?Thanx![/code] Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 11, 2005 try using double quotes Share this post Link to post Share on other sites
iGuest 3 Report post Posted March 11, 2005 i managed to find out how it works, so maybe some would like to know if they have had the same problems.when u test the movie in flash, with [control]+enter, the movie does not use the server, so when you load the php file, instead of writingc.load("myfile.php");you have to writec.load("LOCALHOST/myfile.php") where localhost can be changed by the url of your server.thats it! Share this post Link to post Share on other sites