View Single Post

#1
Bookmark and Share!
allowDomain Headache
Old 2009-05-12 Last edited by SightStorm : 2009-05-12 at 10: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 | 653 views postbit arrow Reply: with Quote   
SightStorm
Registered User
SightStorm is offline
seperator
Posts: 905
2003-08-01
SightStorm's Avatar
seperator

Ultrashock Member Comments: