FLASH弹出窗口的实现

Posted on April 12, 2005 by Fdream

经常在BBS或者关于Flash的论坛上看见有人问在flash里面怎么实现弹出窗口,这里给段代码,供大家参考!

在运行这段代码时,请先关掉3721,如果你使用TT浏览器,请先关掉屏蔽窗口功能,要不就弹不出来了!

做一个按钮,在上面添加如下代码:

on (release) {
getURL(“javascript:window.open(‘http://fdream.net’,”,’toolbars=no,location=no,scrollbars=no,
status=no,resizable=yes,width=500,height=500′)”);
}
//toolbars是否显示工具栏,location是否显示地址栏,scrollbars是否显示滚动条, status是否显示状态栏,resizable是否可以改变大小,后面的不用说了吧。

别忘了把其中的网址改为你自己的地址哦!

OK!可以看看了~~

分享 |
Categories:
Flash/AS
Tags:
, ,
Comments:
Leave a comment
Views:
20,257 Views

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>