当我按下按钮时,我想要全屏显示。
import flash.display.Stage;
import flash.display.StageDisplayState;
buttonfullscreen.onRelease = function()
{
stage.displayState = StageDisplayState.FULL_SCREEN;
}怎么了?
发布于 2013-01-20 04:40:07
它真的应该是
buttonfullscreen.addEventListener(MouseEvent.CLICK, fullScreen);
function fullScreen(event:MouseEvent):void {
stage.displayState=StageDisplayState.FULL_SCREEN;
}https://stackoverflow.com/questions/14418603
复制相似问题