0

当我按下按钮时,我想获得全屏显示。

import flash.display.Stage;
import flash.display.StageDisplayState;

buttonfullscreen.onRelease = function()
{
stage.displayState = StageDisplayState.FULL_SCREEN;
}

怎么了?

4

1 回答 1

0

它真的应该是

   buttonfullscreen.addEventListener(MouseEvent.CLICK, fullScreen); 

     function fullScreen(event:MouseEvent):void {
        stage.displayState=StageDisplayState.FULL_SCREEN;
   }
于 2013-01-19T20:40:06.697 回答