title: swfobject play/pause/stop
body: <p><strong>Good day.</strong></p>
  
  <p><strong>Code:</strong></p>
  
  <pre><code>&lt;object id="ItemEditAnimationObject" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="580" height="370"&gt;
          &lt;param name="movie" value="./6.swf"&gt;
  
          &lt;!--[if !IE]&gt;--&gt;
          &lt;object id="ItemEditAnimationObject" type="application/x-shockwave-flash" data="./6.swf" width="580" height="370"&gt;
  
          &lt;/object&gt;
          &lt;!--&lt;![endif]--&gt;
  
        &lt;/object&gt;
  
  &lt;div id="PlayPause" class="Play"&gt;&lt;/div&gt;
  &lt;div id="Stop"&gt;&lt;/div&gt;
  </code></pre>
  
  <p><strong>Js:</strong></p>
  
  <pre><code>function OnePlay(){
  swfobject.getObjectById('Object').Play();
  }
  
  function OnePause(){
  swfobject.getObjectById('Object').Pause();
  }
  
  function OneStop(){
  swfobject.getObjectById('Object').Stop();
  }
  </code></pre>
  
  <p><strong>Jquery:</strong></p>
  
  <pre><code>$("#PlayPause").on("click",function(){
  
  if($(this).hasClass("Play")){
  $(this).removeClass("Play").addClass("Pause");
  OnePlay();
  }
  else if($(this).hasClass("Pause")){
  $(this).removeClass("Pause").addClass("Play");
  OnePause();
  }
  
  });
  
  $("#Stop").on("click",function(){
  
  OneStop();
  
  });
  </code></pre>
  
  <p><strong>When i click on button with id "PlayPause" swf start.</strong></p>
  
  <p><strong>But if i click again or click on button with id "stop", i get error in firebug:</strong></p>
  
  <p><em>swfobject.getObjectById(...).Pause is not a function</em></p>
  
  <p><em>swfobject.getObjectById(...).Stop is not a function</em></p>
  
  <p><em><strong>Tell me please where error and how aright make pause and stop swf object ?</em></strong></p>