Return to Snippet

Revision: 9337
at October 30, 2008 20:06 by chrisaiv


Initial Code
fullScreen_btn.onRelease = fullScreen_btn.onReleaseOutside = toggleFullScreen;
fullScreen_btn.onRollOver = onRollOverHandler;
fullScreen_btn.onRollOut = onRollOutHandler;

function onRollOverHandler()
{
}

function onRollOutHandler():Void
{
		
}

function toggleFullScreen():Void
{
	if( Stage["displayState"] == "normal"){
		goFullScreen();
	} else {
		exitFullScreen();
	}
}
function goFullScreen():Void
{
	   Stage["displayState"] = "fullScreen";
}

function exitFullScreen():Void
{
   Stage["displayState"] = "normal";
}

Initial URL

                                

Initial Description

                                

Initial Title
AS2: FullScreen

Initial Tags

                                

Initial Language
ActionScript