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.
FlashApe » Flash Javascript Integration Kit and security
Flash Javascript Integration Kit and security
- April 13th, 2006
- 8:50 pm
4 People had this to say...
- rich
- April 14th, 2006
- 7:43 am
thats what i thought at first too…but couldnt get it to work without it.
- Ian D. Miller
- June 29th, 2006
- 12:08 pm
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
- Ian D. Miller
- June 29th, 2006
- 12:54 pm
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!
That sould be necessary only when the swf in the html loaded from a different domain than that of the html page?
Or not?