Rich Rodecker’s blog on flash, flex, actionscript, javascript, and php, with a dash of randomness
Flash Javascript Integration Kit and security
I was trying out the FJIK and I couldnt figure out why my calls to an actionscript function were working locally but not in the browser. Figured out I needed to do a System.security.allowDomain() in the swf recieving the function call. I just wanted to post that because i didnt see it in the docs and I couldnt find it while googling.
| Print article | This entry was posted by rich on April 13, 2006 at 8:50 pm, and is filed under DOM/Javascript, flash. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |

about 4 years ago
That sould be necessary only when the swf in the html loaded from a different domain than that of the html page?
Or not?
about 4 years ago
thats what i thought at first too…but couldnt get it to work without it.
about 4 years ago
I’m actually having the same issue, but even WITH the System.security.allowDomain(‘office.domain.com’) call, I still can’t access my data. Works great locally, but when I get both the HTML and the swf up to the server, the value passed in appears as undefined. If anyone can help, I’d appreciate an email: ircone@yahoo.com
about 4 years ago
Just figured this out. I had a different copy of the JavaScriptFlashGateway.swf locally than I had on the server, which is why it was working locally but not on the server. I uploaded the JavaScriptFlashGateway.swf to the server and everything started working. Yay!