Javascript control on Firefox 2/3 with flash 9

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



my page include some javascript to control the play,rewind..and other functions of the swffile showEdit.swf, it works in Safari/IE with flash-plugin 8/9 installed but  not works in Firefox  with flash plugin 9(would reports obj.play() is not a function, is any one point out what is the problem or there are techniques i can use?

>>>>>>>the source codes>>>>>>>>>>>>>>>>>>
<script>
function show(){
 var obj=document.getElements("showEdit");//it works in Firefox
 obj.play();//it works in IE,but not in Firefox.
}
</script>
>>>>>>>>>>>>>
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"; width="202" height="498" id="showEdit">
    <param name="movie" value="flash/show_edit.swf" />
    <param name="quality" value="high" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="FlashVars" value="userid=rasy" />
    <param name="name" value="FlashVars" />
    <embed src="flash/show_edit.swf" width="202" height="498" quality="hight" pluginspage="http://www.macromedia.com/go/getflashplayer"; type="application/x-shockwave-flash" allowscriptAccess="sameDomain" FlashVars="userid=rasy" name="FlashVars" name="showEdit">
    </embed>
  </object>

_________________________________________________________________
多个邮箱同步管理,live mail客户端万人抢用中
http://get.live.cn/product/mail.html

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux