Ultrashock Forums > Flash > ActionScript
AS2 - allowDomain Headache

You are currently viewing our website as a guest which gives you limited access to forums, files and other resources.

Click here to join now for free, and start interacting with our members, download files and much more!

Click here if you are looking for our Flash files and other professional assets.
 
Post Reply | View first unread | Rate Thread Search this Thread | Thread Tools | Display Modes

#1
Bookmark and Share!
AS2 - allowDomain Headache
Old 2009-05-12 Last edited by SightStorm : 2009-05-12 at 11:44.

Hi Everyone,
Once again, let the nightmare of the Security Sandbox Violations begin!

I am currently trying to include an AS2 application hosted by "xyz.com" domain loaded into other projects. The flash app loading this AS2 app I mentioned above, is required to pass a few variables inside. Everything seems to be working fantastic on the following scenarios:

REQ1- Loading my AS2 application from http://www.xyz.com into an AS3 project on my local machine. WORKS!

REQ2- Loading my AS2 application from http://www.my.com into an AS2 project on my local machine. Using System.security.allowDomain("*"); WORKS!

Now it gets tricky...

REQ3- Loading my AS2 application from http://www.my.com into a self made AS2 Component and into a project on my local machine. DOES NOT WORK... not even with System.security.allowDomain("*"); within the Component nor within the flash movie where the component will live.

Code:
*** Security Sandbox Violation ***
Connection to file:///C|/Users/me/Desktop/xyz/component/ halted 
- not permitted from http://www.xyz.com/xyz/xyz.swf
-- Remote SWFs may not access local files.
Has anyone run into this problem?
Maybe it is an issue within my component? If i can get REQ2 to work, I am a little puzzled on to why REQ3 does not. Any help would be fantastic!

Thanks,
Sightstorm
"In the game of chess you can never let your adversary see your pieces."
postbit arrow 1 comment | 469 views postbit arrow Reply: with Quote   
Registered User
SightStorm is offline
seperator
Posts: 905
2003-08-01
SightStorm lives in United States
SightStorm's Avatar
seperator

Ultrashock Member Comments:
SightStorm's Avatar SightStorm SightStorm is offline SightStorm lives in United States 2009-05-12 #2 Old  
Nevermind... solved!

REQ3 - needed what I had already tried. System.security.allowDomain("*"); I'm still recieving the sanbox violation error but hopefully whoever is consuming my application doesn't care. To finish solving my problem I had some variable typos I needed to address. Hope this helps someone in the future. Good luck
Reply With Quote  
Thread Tools
Display Modes Rate This Thread
Rate This Thread: