Nuclear Rooster

27Jul/084

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