Displaying full-screen windows

Setting the displayState property of the Stage to StageDisplayState.FULL_SCREEN_INTERACTIVE puts the window in full-screen mode, and keyboard input is permitted in this mode. (In SWF content running in a browser, keyboard input is not permitted). To exit full-screen mode, the user presses the Escape key.

The following HTML page simulates a full screen text terminal:

<html> 
<head> 
<title>Fullscreen Mode</title> 
<script language="JavaScript" type="text/javascript"> 
function setDisplayState() { 
    window.nativeWindow.stage.displayState = 
        runtime.flash.display.StageDisplayState.FULL_SCREEN_INTERACTIVE; 
} 
</script>  
<style type="text/css"> 
body, .mono { 
    font-family: Courier New, Courier, monospace; 
    font-size: x-large; 
    color:#CCFF00; 
    background-color:#003030; 
} 
</style> 
</head> 
<body onload="setDisplayState();"> 
    <p class="mono">Welcome to the dumb terminal app. Press the ESC key to exit...</p> 
    <textarea name="dumb" class="mono" cols="100" rows="40">%</textarea> 
</body> 
</html>