Return to Snippet

Revision: 11074
at January 22, 2009 08:52 by Meestercor


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
fullscreen flash as2

Initial Tags
textmate, flash

Initial Language
Other