Skip to main content
October 22, 2007
Question

input textfield triggers sandbox violation (AS2)

  • October 22, 2007
  • 4 replies
  • 795 views
I have this weird phenomenon that I've seen other people write about, but I haven't found any useful replies...

I have a flash content editor that accesses php files on a server, jpeg files on that server, upload jpeg files to that server and that's it. It all works fine, I have numerous input textfields and access numerous php files.. I test it running from the flash editor and it's all swell except.. on one particular set of input fields any time I type anything I get

*** Security Sandbox Violation ***
SecurityDomain ' http://www.bla bla bla/login.php' tried to access incompatible context 'file:///bla bla bla /editor.swf'

which is by the way not true.. that php file is accessed once at the beginning and there's no way that bit of code could be run again as I remove the mc containing it and also delete the function for good measure.

if I skip loading that php it complains about any other php that is loaded first..

Everything continues to run fine, even copy paste (someone somewhere suggested that it might actually be related to the local sandbox and that it shouldn't let you do anything local, like copy paste), so it doesn't seem to actually block anything..

but what weirds me out the most is why this only happens to certain input fields and not others (all are dynamically generated)

Any ideas anyone?
This topic has been closed for replies.

4 replies

Inspiring
October 23, 2007
I suspect its related to that jump then.

There's an example crossdomain.xml file on the following page.
http://moock.org/asdg/technotes/crossDomainPolicyFiles/

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy
SYSTEM " http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<allow-access-from domain="www.yoursite.com" />
<allow-access-from domain="yoursite.com" />
</cross-domain-policy>
October 23, 2007
no, only one swf, .. the domain sitename.com jumps to www.sitename.com, so I'm not sure if that is a yes or no...

if this is what you mean, all phps are accessed on the same domain, with a baseURL variable: ...load(baseURL+filename, ...)
Inspiring
October 23, 2007
do you have more than one swf... and/or does your site have an equivalent subdomain, for example, both a www.sitename.com and a sitename.com address?
kglad
Community Expert
Community Expert
October 22, 2007
what do your problematic input textfields have to do with your php files?
October 23, 2007
nothing really.. it's not like they have an onChanged handler, that would access phps... nor are they given text from php data... hm.. maybe that's it... maybe it complains because they don't have anything to do with the phps... I'll try to look into that..