PDA

View Full Version : Flash -> PHP problems


Grofit
05-01-2006, 04:51 PM
Hello,

Ive got a flash app that works perfectly on my localhost, however when i put it on my online server the flash files just dont contact PHP... ive changed the path from localhost...


oSender.sendAndLoad('http://localhost/phpFile.php', oReturn, "POST");


To...


oSender.sendAndLoad('http://myserver/phpFile.php', oReturn, "POST");


However it just does nothing.. as if it cant find it...
Anyone had this problem before.. or am i doing something wrong?

Grofit
05-01-2006, 05:11 PM
After some more messing around it seems bizarre... but if i put the details for the online server in and then test it in flash public preview thingy it seems to contact the site and spit out what i want...

However if i then publish that file and try to run it via the localhost or online server it does nothing... doesnt seem to communicate at all... worst thing is that i dont seem to be able to debug it at all in the browser :(

snapple
05-01-2006, 07:28 PM
If you use Tamper data (Mozilla) or HTTPWatch (IE) you can debug it in the browser, and combine this with a TextField in your movie where output values are displayed.... that pretty much covers all angles of debugging.

Regards, snapple

Flash Gordon
05-01-2006, 07:32 PM
I was looking for that tool. Thanks for the name!

I usually use getURL("file.php", "_blank", "POST") to debug. It works really well if you don't have Tamper.

snapple
05-01-2006, 07:45 PM
No reason not to have tamper data - its free and easy to use.

Regards, snapple :]

CyanBlue
05-01-2006, 07:55 PM
Good old textField does the job for me...
Of course, your Flash movie starts to bog down once you are running a loop to store lotcha data in it... :D