View Full Version : problem with loadvars
worldhurricane
October 19th, 2005, 11:31 PM
so, my swf sends emails via php interaction. i run it from my computer using the flash player - it works fine. i run it from my computer using a browser (tested in ie and firefox) - it works fine.
i put it on a webserver and use it there, everything works except for the email. the data is sent from the swf to the php file via the loadvars function.
any ideas why it does this or how to fix it?
Lindquist
October 20th, 2005, 12:37 AM
check your path to the php file in your Actionscript.
worldhurricane
October 20th, 2005, 11:15 AM
if only it were something that simple.
it works no matter what computer i use it, as long as it's run locally. if i put it on a web server (running it from the browser's cache), it doesn't work.
Lindquist
October 20th, 2005, 12:21 PM
Are you sure that it's your .swf and not something to do with your php, server, passwords, etc.?
worldhurricane
October 20th, 2005, 03:18 PM
here's what i know:
i put the swf file on my hd. let's say c:\myflash.swf
i open it from there using flash player. everything works fine, including email. i open it from there using any browser (ie, firefox, opera), everything works fine, including email.
i then put it on a webserver, say http://www.worldhurricane.net/myflash.swf
i enter that address in any browser, the file loads and everything works EXCEPT email.
i save the file from the web server and then run it, everything works fine, just like the first case.
the email form in my swf is modeled off http://www.kirupa.com/developer/actionscript/flash_php_email.htm
my form movieclip is removed with onData. when the file is run locally, the movieclip is removed and the email is sent. when it is run from the webserver (stored in my browser cache), the clip is not removed and the email is not sent.
Lindquist
October 20th, 2005, 03:23 PM
Will you post your .fla and .php so I can take a look at the inner workings?
worldhurricane
October 21st, 2005, 12:17 PM
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_14213
evidently, the swf and script have to reside on the same domain. that's why it wouldn't load online. the server that held the swf didn't have php, so we put that script on another server, which caused problems with the security settings of flash player 7.
i personally think that's a pointless and frustrating security check, but what do i know? i'm just a programmer.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.