• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

securityError 2044

Guest
Oct 16, 2008 Oct 16, 2008

Copy link to clipboard

Copied

am having a little trouble with a simple form on one of my flash websites. The form takes three pieces of information (name, email and description) and should submit this data to a php page in the same directory where it emails it to me. When I run the swf from the Flash CS3 Pro program, the connection and submission goes smoothly and I receive the email. But when I load the swf and the php file onto my site
and try it over the internet, it gives me the following error:

Error #2044: Unhandled securityError:. text=Error #2048: Security sandbox violation: http://MYSITE/test/theswf.swf cannot load data from http://MYSITE/test/sendCommission.php.
at theswf_fla::CommissionMovie_27/submitted()

**NOTE: All instances where MYSITE is seen is where the actual www address would go.**

I have attached both the Actionscript and the PHP code to help out.

Thanks in advance,
Michael

TOPICS
ActionScript

Views

446

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Guru , Oct 16, 2008 Oct 16, 2008
Are you sure that you don't have the site being accessed from a www.mysite.com and your request is coded to mysite.com without the 'www' (or vice versa)? This can be a common issue, see :
http://forums.flashgods.org/troubleshooting-problems-with-data-loading-on-my-own-site-t94.html

Other than that I would suggest trying the swf embedded in html rather than direct in the browser like that - not sure if that will help, but I always prefer to do live tests as close as possible to their final impl...

Votes

Translate

Translate
Guru ,
Oct 16, 2008 Oct 16, 2008

Copy link to clipboard

Copied

Are you sure that you don't have the site being accessed from a www.mysite.com and your request is coded to mysite.com without the 'www' (or vice versa)? This can be a common issue, see :
http://forums.flashgods.org/troubleshooting-problems-with-data-loading-on-my-own-site-t94.html

Other than that I would suggest trying the swf embedded in html rather than direct in the browser like that - not sure if that will help, but I always prefer to do live tests as close as possible to their final implementation.
Beyond that please post a live link showing it not working, its easier to debug when you can see the http data in firebug for example.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 16, 2008 Oct 16, 2008

Copy link to clipboard

Copied

Your php code might need to be changed a bit to work correctly as well.

At the moment it's probably returning:

result=successresult=failure

if the POST data is received (and not whether the mail was successfully sent:

the php mail function itself returns a boolean value relating to whether the request was successful or not:
http://docs.php.net/manual/en/function.mail.php

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 17, 2008 Oct 17, 2008

Copy link to clipboard

Copied

Thanks GWD!!

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guru ,
Oct 17, 2008 Oct 17, 2008

Copy link to clipboard

Copied

LATEST
You're welcome.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines