我在图层操作的第一帧中有下面的代码,但它不起作用。
我如何让它工作,我做错了什么?
import flash.display.*;
import flash.events.*;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.displayState = StageDisplayState.FULL_SCREEN;
stop();
exit.addEventListener(MouseEvent.ROLL_OVER, onButtonOver);
exit.addEventListener(MouseEvent.MOUSE_OUT, onButtonOut);
exit.addEventListener(MouseEvent.CLICK, onButtonClicked);
function onButtonOver(event:MouseEvent):void
{
}
function onButtonOut(event:MouseEvent):void
{
}
function onButtonClicked(event:MouseEvent):void
{
var btn:MovieClip = event.target as MovieClip;
NativeApplication.nativeApplication.exit();
}