| Package | org.aswing |
| Class | public class AsWingManager |
You may need to call setRoot() to set a default root container for
AsWing Popups.
See also
| Method | Defined by | ||
|---|---|---|---|
|
callLater(func:Function, time:int = 40):void
[static]
| AsWingManager | ||
|
callNextFrame(func:Function):void
[static]
Adds a function to the queue to be invoked at next enter frame time
| AsWingManager | ||
|
[static]
Returns the stage initial size.
| AsWingManager | ||
|
getRoot(checkError:Boolean = true):DisplayObjectContainer
[static]
Returns the root container which components base on.
| AsWingManager | ||
|
getStage(checkError:Boolean = true):Stage
[static]
Returns the stage inited by
initAsStandard() or setRoot. | AsWingManager | ||
|
initAsStandard(root:DisplayObjectContainer, _preventNullFocus:Boolean = true, workWithFlex:Boolean = false):void
[static]
Init AsWing as a standard setting.
| AsWingManager | ||
|
initStage(theStage:Stage):void
[static]
Init the stage for AsWing, this method should be better called when flashplayer start.
| AsWingManager | ||
|
isPreventNullFocus():Boolean
[static]
Returns the preventNullFocus property.
| AsWingManager | ||
|
isStageInited():Boolean
[static]
Returns whether or not stage is set to the manager.
| AsWingManager | ||
|
setInitialStageSize(width:int, height:int):void
[static]
Sets the intial stage size, this method generally do not need to use.
| AsWingManager | ||
|
setPreventNullFocus(prevent:Boolean):void
[static]
Sets whether or not prevent focus transfer to null when user click a blank(not focusable object).
| AsWingManager | ||
|
setRoot(root:DisplayObjectContainer):void
[static]
Sets the root container for AsWing components based on.
| AsWingManager | ||
|
updateAfterMilliseconds(delay:int = 20):void
[static]
Force the screen to be updated after a time.
| AsWingManager | ||
| callLater | () | method |
public static function callLater(func:Function, time:int = 40):voidParameters
func:Function |
|
time:int (default = 40) |
| callNextFrame | () | method |
public static function callNextFrame(func:Function):voidAdds a function to the queue to be invoked at next enter frame time
Parametersfunc:Function — the function to be invoked at next frame
|
| getInitialStageSize | () | method |
public static function getInitialStageSize():IntDimensionReturns the stage initial size.
ReturnsIntDimension —
the size.
|
| getRoot | () | method |
public static function getRoot(checkError:Boolean = true):DisplayObjectContainerReturns the root container which components base on. If you have not set a specified root, the first stage will be the root to be returned.
Take care to use this method if you are working on a multiple native windows AIR project, because there maybe more than one stage.
ParameterscheckError:Boolean (default = true) — whethor or not check root is inited set.
|
DisplayObjectContainer — the root container, or null--not root set and AsWingManager not stage inited.
|
— if checkError and both root and stage is null.
|
See also
| getStage | () | method |
public static function getStage(checkError:Boolean = true):Stage
Returns the stage inited by initAsStandard() or setRoot.
Take care to use this method if you are working on a multiple native windows AIR project, because there maybe more than one stage.
ParameterscheckError:Boolean (default = true) — whethor or not check is stage is inited set.
|
Stage — the stage.
|
— if checkError and stage is null.
|
See also
| initAsStandard | () | method |
public static function initAsStandard(root:DisplayObjectContainer, _preventNullFocus:Boolean = true, workWithFlex:Boolean = false):voidInit AsWing as a standard setting. This method is very important for your App.
AsWingManager.getStage().
root:DisplayObjectContainer — the default root container for aswing popups, or null to make no default root.
|
|
_preventNullFocus:Boolean (default = true) — set true to prevent focus transfer to null, false, not manage to do this
|
|
workWithFlex:Boolean (default = false) — set this to true if your application ui has both AsWing components and Flex components.
|
See also
| initStage | () | method |
public static function initStage(theStage:Stage):voidInit the stage for AsWing, this method should be better called when flashplayer start. This method will be automatically called when a component is added to stage.
ParameterstheStage:Stage — the stage
|
| isPreventNullFocus | () | method |
public static function isPreventNullFocus():BooleanReturns the preventNullFocus property.
ReturnsBoolean — true means will prevent focus transfer to null, false means do not manage this.
|
See also
| isStageInited | () | method |
public static function isStageInited():BooleanReturns whether or not stage is set to the manager.
ReturnsBoolean — whether or not stage is set to the manager.
|
| setInitialStageSize | () | method |
public static function setInitialStageSize(width:int, height:int):voidSets the intial stage size, this method generally do not need to use. But some times, you know the manager is not initied at right time, i means some times the manager is inited after the stage is resized, so, you maybe need to call this method to correct the size.
Parameterswidth:int — the width of stage when application start.
|
|
height:int — the height of stage when application start.
|
| setPreventNullFocus | () | method |
public static function setPreventNullFocus(prevent:Boolean):voidSets whether or not prevent focus transfer to null when user click a blank(not focusable object). The default value is true, it is suit for normal applications, if you are develop a app that are complex and may have other interactive object is not aswing components, you may need to set this value to false.
Parametersprevent:Boolean — set true to prevent focus transfer to null, false, not manage to do this
|
| setRoot | () | method |
public static function setRoot(root:DisplayObjectContainer):voidSets the root container for AsWing components based on.
You'd better call this method before application start, before flashplayer stage resized.
Default isAsWingManager.getStage().
Parameters
root:DisplayObjectContainer — the root container for AsWing popups.
|
| updateAfterMilliseconds | () | method |
public static function updateAfterMilliseconds(delay:int = 20):voidForce the screen to be updated after a time.
Parametersdelay:int (default = 20) — the time
|