Create two layers as button and AS. In the button layer create a button and name its instance btn1. Go to AS layer and add the below codes in it.
btn1.addEventListener(MouseEvent.CLICK,aa);
function aa(e:MouseEvent):void {
fscommand("fullscreen", "true");
}
btn1.addEventListener(MouseEvent.CLICK,aa);
function aa(e:MouseEvent):void {
fscommand("fullscreen", "true");
}
No comments:
Post a Comment