fscommand("showmenu", "false"); 播放时没菜单
fscommand ("showmenu", "false");
fscommand ("allowscale", "false");
if (downb == alb) {
gotoAndPlay ("start");
} else {
gotoAndPlay ("mmm");
}
这里举个最常见的例子——利用getURL调用javascript打开新窗口
方法如下:
将下面的代码加到Flash按钮上
on (release)
{
getURL("javascriptullwin(\'main.htm\' , \'main\' , \'toolbar=no,width=100%,height=100%,left=0,top=0,status=no,scrollbars=no,resizable=no\')";
}
具体参数设置如下:
URL -> 弹出新窗口的页面地址
Width -> 窗口宽度
Height -> 窗口高度
Name -> 窗口名
Tool bar -> 是否需要工具栏
Menu bar -> ........菜单栏
Location bar -> ....地址栏
Scroll bar -> .....滚动条
Status bar -> ......状态栏
Resizable -> 是否可以改变大小
发布成HTML格式,然后打开该文件,给它添加一段代码,则在显示页的HEAD中写
<script language="JavaScript">
function openNewWindow(URLtoOpen, windowName, windowFeatures) { newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
</script>
鼠标掠过,打开全屏网页,离开则关闭此网页
on (rollOver) {
getURL("javascript:window.open('yue2.htm','_blank','fullscreen=1,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0')");
}
on(rollOut){getURL("javascript:opener=null; window.close()");}