Skip to Content »

FlashApe » Flash Javascript Integration Kit and security

 Flash Javascript Integration Kit and security

  • April 13th, 2006
  • 8:50 pm

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.

4 People had this to say...

Gravatar
  • cosmin
  • April 14th, 2006
  • 4:03 am

That sould be necessary only when the swf in the html loaded from a different domain than that of the html page?
Or not?

Gravatar
  • rich
  • April 14th, 2006
  • 7:43 am

thats what i thought at first too…but couldnt get it to work without it.

Gravatar
  • 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

Gravatar
  • 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!

Want your say?

* Required fields. Your e-mail address will not be published on this site


You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>