Note that there are some explanatory texts on larger screens.

plurals
  1. POStart flash playback from javascript
    primarykey
    data
    text
    <p>I have this Flash embedded in my page:</p> <pre><code>&lt;object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="180" height="76" id="SignUpTop1" align="middle"&gt; &lt;param name="movie" value="/Videos/SignUpTop1.swf" /&gt; &lt;param name="quality" value="high" /&gt; &lt;param name="bgcolor" value="#ffffff" /&gt; &lt;param name="play" value="false" /&gt; &lt;param name="loop" value="false" /&gt; &lt;param name="wmode" value="window" /&gt; &lt;param name="scale" value="showall" /&gt; &lt;param name="menu" value="false" /&gt; &lt;param name="devicefont" value="false" /&gt; &lt;param name="salign" value="" /&gt; &lt;param name="allowScriptAccess" value="sameDomain" /&gt; &lt;!--[if !IE]&gt;--&gt; &lt;object type="application/x-shockwave-flash" data="/Videos/SignUpTop1.swf" width="180" height="76"&gt; &lt;param name="movie" value="/Videos/SignUpTop1.swf" /&gt; &lt;param name="quality" value="high" /&gt; &lt;param name="bgcolor" value="#ffffff" /&gt; &lt;param name="play" value="false" /&gt; &lt;param name="loop" value="false" /&gt; &lt;param name="wmode" value="window" /&gt; &lt;param name="scale" value="showall" /&gt; &lt;param name="menu" value="false" /&gt; &lt;param name="devicefont" value="false" /&gt; &lt;param name="salign" value="" /&gt; &lt;param name="allowScriptAccess" value="sameDomain" /&gt; &lt;!--&lt;![endif]--&gt; &lt;div style="height:180px"&gt;&amp;nbsp;&lt;/div&gt; &lt;!--[if !IE]&gt;--&gt; &lt;/object&gt; &lt;!--&lt;![endif]--&gt; &lt;/object&gt; </code></pre> <p>I want to start playback of the flash movie 5 seconds after the page is loaded. So, I do:</p> <pre><code> setTimeout(function () {document.getElementById("SignUpTop1").play();}, 5000); </code></pre> <p>And, getting this error in Chrome:</p> <p>Uncaught TypeError: Object # has no method 'play' </p> <p>What is the proper way to start a Flash playback from Javascript? A code sample would be greatly appreciated.</p> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload