Window
Window object for changing it size, position and title on desktop targets.
Secondary window can be created from static Lib.Media.Window.createSecondaryWindow method:
Lib.Media.Window.createSecondaryWindow(inWidth, inHeight, inTitle, inFlags, inColour, inFrameRate, inIcon) |
Creates secondary window on desktop targets. |
inWidth - width (int number) inHeight - height (int number) inTitle - title (string) inFlags - flags (int number) default - 0x0f, available: Lib.Media.Window.RESIZABLE Lib.Media.Window.BORDERLESS Lib.Media.Window.ALWAYS_ON_TOP Lib.Media.Window.FULLSCREEN Lib.Media.Window.VSYNC inColour - background color (int number) default - 0xffffff inFrameRate - frame rate (float number) default - 0.0 inIcon - icon, currently not supported. default - nil |
Window has few properties:
stage |
Stage object |
read-only, Stage |
active |
true/false indicates if window active, has focus. |
read-only, bool |
x |
x window position |
read-only, int |
y |
y window position |
read-only, int |
width |
window width |
read-only, int |
height |
window height |
read-only, int |
title |
window title |
string |
methods:
setPosition(x, y) |
set window position on screen |
x - x window position (int number) y - window position (int number) |
resize(width, height) |
resize window NOTE: resize method will not change window properties width and height instantly. Add to stage Lib.Media.Events.Event.RESIZE event function for capturing updated values. |
width - window width (int number) height - window height (int number) |
close() |
close window. Return false if window prevented from closing by using stage BEFORE_CLOSE event. true if closing request complete. |
|
static property:
Lib.Media.Window.supportsSecondary |
true/false indicates if it is possible to create secondary window |
read-only, bool |
NOTE: Currently Away3D not supported on secondary windows.
Created with the Personal Edition of HelpNDoc: iPhone web sites made easy