playing a flash movie using javascript in Internet Explorer 8

Posted by Ragalante on Stack Overflow See other posts from Stack Overflow or by Ragalante
Published on 2010-04-08T19:29:39Z Indexed on 2010/04/08 19:33 UTC
Read the original article Hit count: 395

Hi guys,

I´m having a problem trying to play a flashMovie(swf file)...

Here is my code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" .....> <param name="allowScriptAccess" value="sameDomain" /> <param name="allowFullScreen" value="false" /> <param name="movie" value="nyauto_pageflip4.swf" /> <param name="quality" value="high" /> <param name="play" value="true"/> <param name="wmode" value="transparent" /> <embed swLiveConnect="true" src="file.swf" quality="high" name="flash_flip" id="flash_flip" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />

Then, I have a javascript function with the play line:

$('flash_flip').Play();

I have jQuery, but I already tryed with document.GetElementById =)

So, when this line executes, the flash movie plays. This works in FF and Chrome, but not in ie8...

Is there any way to fix that?

Thanks!

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about flash