March 19, 2012

Flash AS 3.0, Fullscreen Button

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");

}

No comments:

Post a Comment