flash actionScript 最大化 还原 in brower

ActionScript
--------------------------------------------
import flash.external.*;
function init(){
hy_mc._visible = false;
}

qp_mc.onPress = function(){
Stage["displayState"]="fullScreen";
qp_mc._visible = false;
hy_mc._visible = true;
hy_mc._x -=72;
}

hy_mc.onPress = function(){
Stage["displayState"]="normal";
hy_mc._visible = false;
qp_mc._visible = true;
hy_mc._x +=72;
}

Stage.scaleMode = "noScale";
Stage.align = "TL";
Stage.addListener(this);

init();

--------------------------
html

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-44455354000012"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="740" height="530" id="swf" align="middle">
<param name="allowFullScreen" value="true" />
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie"
value="<%=basePath%>flash/full.swf" />
<param name="quality" value="high" />
<param name="FlashVars"
value="swf_source=<%=basePath%><%=fp.getSwfurl()%>&swf_w=700&swf_h=530">
<param name="bgcolor" value="#fff" />
<embed src="<%=basePath%>flash/full.swf"
quality="high" bgcolor="#fff" allowFullScreen="true"
FlashVars="swf_source=<%=basePath%><%=fp.getSwfurl()%>&swf_w=700&swf_h=530"
width="740" height="530" name="large_buttons" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值