<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="433" height="206" id="Untitled-2" align="middle">
<param name="movie" value="http://marinegyulumyan.com/_resource/templates/default/flash/01.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#0d0a0a" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="Untitled-2.swf" width="433" height="206">
<param name="movie" value="http://marinegyulumyan.com/_resource/templates/default/flash/01.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#0d0a0a" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
<a href="" class="play">play</a>
<a href="" class="pause">pause</a>
</div>
<script type="text/javascript">
$(".play").live("click", function() {
if($('param[name=play]').attr('value') == false){
$('param[name=play]').attr('value','true');
}else { $('param[name=play]').attr('value','true');}
return false;
});
$(".pause").live("click", function() {
if($('param[name=play]').attr('value') == true){
$('param[name=play]').attr('value','false');
}else { $('param[name=play]').attr('value','false');}
return false;
});
</script>
Как остановить движение Flash Player, нажав на ссылку ??? Посмотрите мой код, где я использовал jQuery, и, пожалуйста, скажите, что я сделал не так?