Nuclear Rooster

27Jul/086

ExternalInterface.addCallback can cause IE JS Errors with certain keyworkds

After hide-and-go-seek-an-IE-javascript error, the solution proved to be delightfully easy, and completely inane (go figure IE). Apparently, you cannot adding an actionscript callback for a certain set of keywords ("play", "stop", ?) will break in IE and cause a javascript error.

The Flash 9 ExternalInterface page notes this in a comment at the bottom.

Turns out there is a whole bunch of 'special' words that break IE in different contexts, mostly DOM id's that will break IE. Eric Meyer has a better explanation with demos here.

Stay away from

  • play
  • stop
  • tags
  • tags
  • item
  • length

and, no doubt, many more.

Again, IE, you

Fail

Fail

Comments (6) Trackbacks (0)
  1. BIG BIG THANKS! I spent a lot of time to find your post and solution…

  2. Thanks so much i spent a lot of time to find solution too, FUCK IE

  3. WFT!!! “pause” causes error too…

    Thank you!

  4. Sorry “pause” not… it was “play”. Thank you again

  5. thank you, what a nightmare

  6. Oh My … 2 hours on this bug … setActive() causes the problem too
    Thanks !


Leave a comment


No trackbacks yet.