Is ExternalInterface not working? This might help...

I found out that my Firefox (3.0.5) wasn't handling the ExternalInterface calls. Or Flash was doing something wrong, I dunno.

But I did find a solution, which was to use a different html approach to swf embedding.
I now use the following cross-browser compatible code for swf embedding, and all is fine:

<object type="application/x-shockwave-flash" data="soundplayer.swf" id="soundplayer" name="soundplayer" width="1" height="1">
   <param name="movie" value="soundplayer.swf"/>
   <param name="menu" value="false"/>
   <param name="wmode" value="transparent"/>
   <param name="bgcolor" value="#ffffff"/>
</object>

If you must use a javascript way to write the swf html code, then make sure that the <embed> tag gets an ID as well as a NAME (even though it's not okay according to the w3c rules, your getElementById won't find it otherways).

Hope to have helped someone; leave me a comment if it did :)

del.icio.us Digg StumbleUpon Facebook Technorati Fav reddit Google Bookmarks
| Viewed 2617 times

No comments yet.

(will not be published)
Leave this field empty

standup