Use these commands to control the application window.
| Command | Arguments | Purpose |
| window.fullscreen | true or false | Specifying true switches the SWF to the full-screen mode. Specifying false restores the window of the application. |
| window.title | title bar text | Changes the title of the window. |
| window.maximized | true or false | Specifying true maximizes the window. Specifying false restores the window. |
| window.minimized | true or false | Specifying true minimizes the window. Specifying false restores the window. |
Synonym for fullscreen.
This command changes the text on the title bar of the window. The argument must contain the new title text.
The following script changes the title to “My Application”:
fscommand(“window.title”, “My Application”);
This command maximizes/restores the window. The contents will be also scaled to fit the new window size, provided that allowscale is set to true.
Link the following ActionScript with a button in order to maximize the window with a click on it:
on (release) { fscommand("window.maximized", "true"); }
This command minimizes/restores the window.
Link the following ActionScript with a button in order to minimize the window with a click on it:
on (release) { fscommand("window.minimize", "true"); }
All rights reserved © 2007 ChameleonFlash.com