在flash 單擊按鈕,彈出指定要求的窗口
更新時(shí)間:2009年05月27日 18:15:05 作者:
在flash 單擊按鈕,彈出指定要求的窗口的實(shí)現(xiàn)代碼。
選中指定按鈕后,在flash代碼編輯窗口中添加:
stop();
this.onRelease = function(){
getURL("javascript:openWin();");
}
在包含改Flash文件的頁面中,添加如下JavaScript腳本
<script type="text/JavaScript">
<!--
function openWin() {
window.open('http://blog.csdn.net/guoquanyou','88','top=0,left=200,width=600,height=600,scrollbars=no,resizable=no,status=yes,z-look=yes,alwaysRaised=yes,location=no,depended=no,center:yes');
}
-->
</script>
復(fù)制代碼 代碼如下:
stop();
this.onRelease = function(){
getURL("javascript:openWin();");
}
在包含改Flash文件的頁面中,添加如下JavaScript腳本
復(fù)制代碼 代碼如下:
<script type="text/JavaScript">
<!--
function openWin() {
window.open('http://blog.csdn.net/guoquanyou','88','top=0,left=200,width=600,height=600,scrollbars=no,resizable=no,status=yes,z-look=yes,alwaysRaised=yes,location=no,depended=no,center:yes');
}
-->
</script>
相關(guān)文章
Flash ActionScript 中按鈕和電影剪輯的事件和方法
Flash ActionScript 中按鈕和電影剪輯的事件和方法...2007-03-03FLASH 多參數(shù)的URL地址(帶&符號(hào))
FLASH 多參數(shù)的URL地址的處理技巧。2009-05-05比較完整簡潔的Flash處理XML文檔數(shù)據(jù)教程 上篇
比較完整簡潔的Flash處理XML文檔數(shù)據(jù)教程 上篇...2007-12-12用as檢測服務(wù)器端的某個(gè)flv文件是否存在的代碼
用as檢測服務(wù)器端的某個(gè)flv文件是否存在的代碼...2007-03-03