How can I call an Actionscript function when the .swf is referenced by jQuery?

Posted by Arms on Stack Overflow See other posts from Stack Overflow or by Arms
Published on 2009-09-24T19:35:19Z Indexed on 2010/04/24 19:03 UTC
Read the original article Hit count: 236

I have an .swf that I am embedding into HTML using the jQuery SWF Object plugin (http://jquery.thewikies.com/swfobject). I have a number of functions within the .swf that I need to call from within javascript functions. I've made these actionscript functions accessible to javascript by calling flash.external.ExternalInterface.addCallback(). Yet nothing happens when I make the call. I've had this happen before and it seems to be that when you reference the .swf from jQuery, you can't call flash functions. Is there anyway around this (aside from not using jQuery)?

Thanks.

© Stack Overflow or respective owner

Related posts about flash

Related posts about actionscript-2