Вставляем код в первый кадр и создаем кнопку

Код AS1/AS2:
Stage.scaleMode = 'exactFit';
//Don't scale the movie when the stage size changes
//Stage.scaleMode="noScale";
//Align the stage to the top left
Stage.align = "TL";
//Function to toggle between fullscreen and normal size
//the toggle fullscreen button calls this function when pressed
function toggleFullScreen(){
//if normal size, go to fullscreen, else go to normal size
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
}else{
Stage["displayState"]="normal";
}
}
//Create a listener for each time the Stage is resized
var resizeListener:Object = new Object();
//Called each time the stage is resized
resizeListener.onResize = function () {
//Move the button to the center of the screen
toggleFullScreenButton._x=Stage.width/2;
toggleFullScreenButton._y=Stage.height/2;
}
//Add the listener to Stage
Stage.addListener(resizeListener);
Stage["displayState"]="normal";
И есть кнопка

Код AS1/AS2:
on(press){
toggleFullScreen();
}
Как сделать разворачивание на весь экран без кнопки?