Send this to a friend
1 fullScreen_btn.onRelease = fullScreen_btn.onReleaseOutside = toggleFullScreen;
2 fullScreen_btn.onRollOver = onRollOverHandler;
3 fullScreen_btn.onRollOut = onRollOutHandler;
4
5 function onRollOverHandler()
6 {
7 }
8
9 function onRollOutHandler():Void
10 {
11
12 }
13
14 function toggleFullScreen():Void
15 {
16 if( Stage["displayState"] == "normal"){
17 goFullScreen();
18 } else {
19 exitFullScreen();
20 }
21 }
22 function goFullScreen():Void
23 {
24 Stage["displayState"] = "fullScreen";
25 }
26
27 function exitFullScreen():Void
28 {
29 Stage["displayState"] = "normal";
30 }
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";
}