this problem is bugging me and i cant seem to understand why its happening…
i’ve created a basic flash form which uses the following script for the send button:
function sendButtonClicked(event:MouseEvent):void
{
removeChild(imc);
addChild(sending);
var variables:URLVariables = new URLVariables();
var request:URLRequest = new URLRequest();
request.url = "http://www.mydomain.com/contactform.php";
request.method = URLRequestMethod.GET;
request.data = variables;
variables.name_text = imc.nameText.text;
variables.email_text = imc.emailText.text;
variables.message_text = imc.messageText.text;
var loader:URLLoader = new URLLoader();
loader.dataFormat = URLLoaderDataFormat.TEXT;
loader.addEventListener(Event.COMPLETE, loadingComplete);
try
{
loader.load(request);
}
catch(error:Error)
{
trace(error.message);
}
}
it works well when i test it locally in the flash IDE… it also works when i upload the SWF and the corresponding HTML file that holds it to www.mydomain.com/form …
but when i upload it to a subdomain (ex. www.subdomain.mydomain.com), it doesnt work anymore… after pressing the “send” button, my “sending input” animation shows up as expected, but then it gets stuck there and never proceeds to the “input sent” animation… the message never gets sent to my email…
what could be going on?