Full Screen in Flash

This is my first post and I want to share the code for the full screen flash app.
This code works fine in ActionScript 2.0 so you can use it in your old and new projects as well.

So this is the code you need to use:

function toggleFullScreen(){
	if(Stage["displayState"]=="normal"){
		Stage["displayState"]="fullScreen";
	}else{
		Stage["displayState"]="normal";
	}
}
 
fullScreenBtn.onRelease = function(){
	toggleFullScreen();
}

And from here you can download the source files