Flash AS3.0 actionscript全屏播放代码

my_btn.addEventListener(MouseEvent.CLICK,fs);//监听事件
function fs(evt:MouseEvent):void {
switch (stage.displayState) {
case "normal" :
stage.displayState="fullScreen";
break;
case "fullScreen" :
default :
stage.displayState="normal";// 默认标准窗 break;                                                                                                                                      


}
}

 

转:http://hi.baidu.com/bjx321/blog/item/c2f1a81beb705b108718bf6b.html

你可能感兴趣的:(function,Flash,actionscript)