Please post your page, and then people can offer feedback. Aran
On Fri, Sep 18, 2009 at 3:57 PM, Viraj <[email protected]> wrote: > > I've embedded a flash mp3 player (flash-mp3-player.net) using > swfobject and dynamic publishing. I've named the embedded object (set > id and name to "my_player"). In order to invoke methods from > javascript (play, stop, etc) I use: > > var player = document.getElementById("my_player"); > if( player !== null ) { > player.SetVariable("method:play", "" ); } > > etc. In Firefox 3.5, I see the error "SetVariable() is not a > function". I know document.getElementById worked because I can see the > object (player is not null, and looks like the object I embedded in > console). What's really strange is that re-running this exact same > code without re-loading the page seems to work, and thereafter it's > fine. I'm pretty sure the swf object is loaded because I see it in the > debug js console. This works flawlessly in Chrome, IE and Safari. > > I've tried switching to static publishing, using > swfobject.getObjectById(), but neither made a difference. > > Any suggestions on what I can do to fix this or diagnose this further? > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SWFObject" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/swfobject?hl=en -~----------~----~----~----~------~----~------~--~---
