我想按下按钮时会全屏显示。
import flash.display.Stage;
import flash.display.StageDisplayState;
buttonfullscreen.onRelease = function()
{
stage.displayState = StageDisplayState.FULL_SCREEN;
}
出了什么问题?
答案 0 :(得分:0)
它确实应该是
buttonfullscreen.addEventListener(MouseEvent.CLICK, fullScreen);
function fullScreen(event:MouseEvent):void {
stage.displayState=StageDisplayState.FULL_SCREEN;
}