[心得] Flash CS3中全屏、退出全屏及关闭播放器代码
//全屏
stage.displayState =StageDisplayState.FULL_SCREEN
//单击Btn_goNormal按钮,退出全屏
Btn_goNormal.addEventListener(MouseEvent.MOUSE_DOWN,goNormal);
function goNormal(event:MouseEvent):void
{
stage.displayState = StageDisplayState.NORMAL;
}
//单击Btn_quit按钮,关闭播放器
Btn_quit.addEventListener(MouseEvent.MOUSE_DOWN,quit);
function quit(event:MouseEvent):void
{
fscommand("quit");
} |