Hi all
I have the weirdest problem I have ever encountered!
Basically I had a Flash app running on my website successfully, pulling in data from php scripts.
Suddenly, it stopped working…although the Flash app worked but it froze when it got to a point where data was pulled from php. However, when ran offline, it worked perfectly!
I tried changing server (bought a new domain and web plan) and just about everything.
I’ve simplified it to this for demo purposes:
Test.swf (with a dynamic textbox named myText1):
stop();
var scriptName:String = "http://gemixinbiz.fatcow.com/test.php";
var testNumber:Number;
var loader:URLLoader = new URLLoader()
loader.load(new URLRequest(scriptName))
loader.addEventListener(Event.COMPLETE, loaded)
function loaded(e:Event)
{
testNumber = e.target.data;
myText1.text = testNumber.toString();
}
test.php:
<?php
echo 5;
?>
So when I run the SWF locally via Adobe Flash, it works perfectly. But as soon as I upload it to my web site, it won’t work. I have been using my website with Flash and PHP successfully for ages so it’s a mystery!
The links to the online versions are:
http://www.gemixinbiz.fatcow.com/Test.swf
http://www.gemixinbiz.fatcow.com/test.php
Any ideas would be massively appreciated.
Thanks
Gemma