Why does IE8 change flash callback function into object?

Posted by Christian Hollbaum on Stack Overflow See other posts from Stack Overflow or by Christian Hollbaum
Published on 2010-04-23T19:02:53Z Indexed on 2010/04/24 6:23 UTC
Read the original article Hit count: 373

Hi Guys

I have put 2 swf's (using swfobject 2) on the same website; One for playing a movie, and one for controlling the movie (I want to position them seperately, so they can't be in the same swf).

I'm doing the communication between the two using javascript with jQuery, and externalcallback functions in both swf's.

Everything is running smoothly on all browsers, but IE8. In IE8 I can only call the pause callback function in the control swf once. When it has been called it will not run properly the next time.

After trying to debug what is happening live, using javascript's "type of" I have found that IE8 changes the callback function on the flash object from a function into an object when it has been triggered.

Can anyone explain why this is happening?
.. and maybe suggest how to avoid this?
.. or change the object back to a function?

© Stack Overflow or respective owner

Related posts about ie8

Related posts about swfobject