| Property | Defined by | ||
|---|---|---|---|
| BOTTOM : Number = 3 [static]
A fast access to AsWingConstants Constant
| AsWingUtils | ||
| CENTER : Number = 0 [static]
A fast access to ASWingConstants Constant
| AsWingUtils | ||
| HORIZONTAL : Number = 0 [static]
A fast access to AsWingConstants Constant
| AsWingUtils | ||
| LEFT : Number = 2 [static]
A fast access to AsWingConstants Constant
| AsWingUtils | ||
| RIGHT : Number = 4 [static]
A fast access to AsWingConstants Constant
| AsWingUtils | ||
| TOP : Number = 1 [static]
A fast access to AsWingConstants Constant
| AsWingUtils | ||
| VERTICAL : Number = 1 [static]
A fast access to AsWingConstants Constant
| AsWingUtils | ||
| Method | Defined by | ||
|---|---|---|---|
|
applyTextColor(text:TextField, color:ASColor):void
[static]
| AsWingUtils | ||
|
applyTextFont(text:TextField, font:ASFont):void
[static]
| AsWingUtils | ||
|
[static]
Apply the font and color to the textfield.
| AsWingUtils | ||
|
applyTextFormat(text:TextField, textFormat:TextFormat):void
[static]
| AsWingUtils | ||
|
centerLocate(popup:JPopup):void
[static]
Locate the popup at center of the stage.
| AsWingUtils | ||
|
computeStringSize(tf:TextFormat, str:String, includeGutters:Boolean = true, textField:TextField = null):IntDimension
[static]
Computes the text size of specified textFormat, text, and textfield.
| AsWingUtils | ||
|
[static]
Computes the text size of specified font, text.
| AsWingUtils | ||
|
createLabel(parent:DisplayObjectContainer = null, name:String = null):TextField
[static]
Create a disabled TextField at specified parent with specified name.
| AsWingUtils | ||
|
[static]
Creates and return a pane to hold the component with specified layout manager and constraints.
| AsWingUtils | ||
|
createShape(parent:DisplayObjectContainer = null, name:String = null):Shape
[static]
Create a shape.
| AsWingUtils | ||
|
createSprite(parent:DisplayObjectContainer = null, name:String = null):Sprite
[static]
Create a sprite at specified parent with specified name.
| AsWingUtils | ||
|
getOwnerAncestor(c:Component):DisplayObjectContainer
[static]
Returns the first popup ancestor or display object root of c, or null if can't find the ancestor
| AsWingUtils | ||
|
getOwnerComponent(dis:DisplayObject):Component
[static]
Returns the component owner of specified obj.
| AsWingUtils | ||
|
[static]
Returns the MCPanel ancestor of c, or null if it is not contained inside a mcpanel yet
| AsWingUtils | ||
|
[static]
Returns the center position in the stage.
| AsWingUtils | ||
|
getStageMousePosition(stage:Stage = null):IntPoint
[static]
| AsWingUtils | ||
|
getVisibleMaximizedBounds(dis:DisplayObject = null):IntRectangle
[static]
Returns the currently visible maximized bounds in a display object(viewable the stage area).
| AsWingUtils | ||
|
[static]
Returns whether or not the ancestor is the child's display ancestor.
| AsWingUtils | ||
|
[static]
Returns whether or not the ancestor is the child's component ancestor.
| AsWingUtils | ||
|
isAncestorDisplayObject(ancestor:DisplayObjectContainer, child:DisplayObject):Boolean
[static]
Returns whether or not the ancestor is the child's ancestor.
| AsWingUtils | ||
|
isDisplayObjectShowing(dis:DisplayObject):Boolean
[static]
Returns whethor or not the display object is showing, which means that
it is visible and it's ancestors(parent, parent's parent ...) is visible and on stage too.
| AsWingUtils | ||
|
layoutCompoundLabel(c:Component, f:ASFont, text:String, icon:Icon, verticalAlignment:int, horizontalAlignment:int, verticalTextPosition:int, horizontalTextPosition:int, viewR:IntRectangle, iconR:IntRectangle, textR:IntRectangle, textIconGap:int):String
[static]
Compute and return the location of the icons origin, the
location of origin of the text baseline, and a possibly clipped
version of the compound labels string.
| AsWingUtils | ||
|
layoutText(f:ASFont, text:String, verticalAlignment:Number, horizontalAlignment:Number, viewR:IntRectangle, textR:IntRectangle):String
[static]
Compute and return the location of origin of the text baseline, and a possibly clipped
version of the text string.
| AsWingUtils | ||
|
updateAllComponentUI(stage:Stage = null):void
[static]
When call
setLookAndFeel it will not change the UIs at created components. | AsWingUtils | ||
|
updateAllComponentUIInMemory():void
[static]
When call
setLookAndFeel it will not change the UIs at created components. | AsWingUtils | ||
|
updateChildrenUI(dis:DisplayObject):void
[static]
Asks every component that is not a ui element containsed in the display object to updateUI().
| AsWingUtils | ||
|
updateComponentTreeUI(c:Component):void
[static]
A simple minded look and feel change: ask each node in the tree to updateUI() -- that is,
to initialize its UI property with the current look and feel.
| AsWingUtils | ||
|
weakRegisterComponent(c:Component):void
[static]
All component will be registered here.
| AsWingUtils | ||
| BOTTOM | property |
public static var BOTTOM:Number = 3A fast access to AsWingConstants Constant
See also
| CENTER | property |
public static var CENTER:Number = 0A fast access to ASWingConstants Constant
See also
| HORIZONTAL | property |
public static var HORIZONTAL:Number = 0A fast access to AsWingConstants Constant
See also
| LEFT | property |
public static var LEFT:Number = 2A fast access to AsWingConstants Constant
See also
| RIGHT | property |
public static var RIGHT:Number = 4A fast access to AsWingConstants Constant
See also
| TOP | property |
public static var TOP:Number = 1A fast access to AsWingConstants Constant
See also
| VERTICAL | property |
public static var VERTICAL:Number = 1A fast access to AsWingConstants Constant
See also
| applyTextColor | () | method |
public static function applyTextColor(text:TextField, color:ASColor):voidParameters
text:TextField |
|
color:ASColor |
| applyTextFont | () | method |
public static function applyTextFont(text:TextField, font:ASFont):voidParameters
text:TextField |
|
font:ASFont |
| applyTextFontAndColor | () | method |
public static function applyTextFontAndColor(text:TextField, font:ASFont, color:ASColor):voidApply the font and color to the textfield.
Parameterstext:TextField |
|
font:ASFont |
|
color:ASColor |
| applyTextFormat | () | method |
public static function applyTextFormat(text:TextField, textFormat:TextFormat):voidParameters
text:TextField |
|
textFormat:TextFormat |
| centerLocate | () | method |
public static function centerLocate(popup:JPopup):voidLocate the popup at center of the stage.
Parameterspopup:JPopup — the popup to be located.
|
| computeStringSize | () | method |
public static function computeStringSize(tf:TextFormat, str:String, includeGutters:Boolean = true, textField:TextField = null):IntDimensionComputes the text size of specified textFormat, text, and textfield.
Parameterstf:TextFormat — the textformat of the text
|
|
str:String — the text to be computes
|
|
includeGutters:Boolean (default = true) — whether or not include the 2-pixels gutters in the result
|
|
textField:TextField (default = null) — if a textField is specifed, the embedFonts, antiAliasType, gridFitType, sharpness,
and thickness properties of this textField will take effects.
|
IntDimension —
the computed size of the text
|
| computeStringSizeWithFont | () | method |
public static function computeStringSizeWithFont(font:ASFont, str:String, includeGutters:Boolean = true):IntDimensionComputes the text size of specified font, text.
Parametersfont:ASFont — the font of the text
|
|
str:String — the text to be computes
|
|
includeGutters:Boolean (default = true) — whether or not include the 2-pixels gutters in the result
|
IntDimension —
the computed size of the text
|
| createLabel | () | method |
public static function createLabel(parent:DisplayObjectContainer = null, name:String = null):TextFieldCreate a disabled TextField at specified parent with specified name. The created sprite default property is mouseEnabled=false, selecteable=false, editable=false TextFieldAutoSize.LEFT etc.
Parametersparent:DisplayObjectContainer (default = null) |
|
name:String (default = null) |
TextField — the textfield
|
| createPaneToHold | () | method |
public static function createPaneToHold(com:Component, layout:LayoutManager, constraints:Object = null):ContainerCreates and return a pane to hold the component with specified layout manager and constraints.
Parameterscom:Component |
|
layout:LayoutManager |
|
constraints:Object (default = null) |
Container |
| createShape | () | method |
public static function createShape(parent:DisplayObjectContainer = null, name:String = null):ShapeCreate a shape.
Parametersparent:DisplayObjectContainer (default = null) |
|
name:String (default = null) |
Shape — the sprite
|
| createSprite | () | method |
public static function createSprite(parent:DisplayObjectContainer = null, name:String = null):SpriteCreate a sprite at specified parent with specified name. The created sprite default property is mouseEnabled=false.
Parametersparent:DisplayObjectContainer (default = null) |
|
name:String (default = null) |
Sprite — the sprite
|
| getOwnerAncestor | () | method |
public static function getOwnerAncestor(c:Component):DisplayObjectContainerReturns the first popup ancestor or display object root of c, or null if can't find the ancestor
Parametersc:Component |
DisplayObjectContainer — the first popup ancestor or display object root of c, or null if can't find the ancestor
|
| getOwnerComponent | () | method |
public static function getOwnerComponent(dis:DisplayObject):ComponentReturns the component owner of specified obj.
Parametersdis:DisplayObject |
Component —
the component owner of specified obj.
|
| getPopupAncestor | () | method |
public static function getPopupAncestor(c:Component):JPopupReturns the MCPanel ancestor of c, or null if it is not contained inside a mcpanel yet
Parametersc:Component |
JPopup —
the first MCPanel ancestor of c, or null.
|
| getScreenCenterPosition | () | method |
public static function getScreenCenterPosition():IntPointReturns the center position in the stage.
ReturnsIntPoint |
| getStageMousePosition | () | method |
public static function getStageMousePosition(stage:Stage = null):IntPointParameters
stage:Stage (default = null) |
IntPoint |
| getVisibleMaximizedBounds | () | method |
public static function getVisibleMaximizedBounds(dis:DisplayObject = null):IntRectangleReturns the currently visible maximized bounds in a display object(viewable the stage area).
Note : your stage must be StageAlign.TOP_LEFT align unless this returned value may not be right. > Parameters
dis:DisplayObject (default = null) — the display object, default is stage
|
IntRectangle |
| isAncestor | () | method |
public static function isAncestor(ancestor:Component, child:Component):BooleanReturns whether or not the ancestor is the child's display ancestor.
Parametersancestor:Component |
|
child:Component |
Boolean — whether or not the ancestor is the child's display ancestor.
|
| isAncestorComponent | () | method |
public static function isAncestorComponent(ancestor:Component, child:Component):BooleanReturns whether or not the ancestor is the child's component ancestor.
Parametersancestor:Component |
|
child:Component |
Boolean — whether or not the ancestor is the child's component ancestor.
|
| isAncestorDisplayObject | () | method |
public static function isAncestorDisplayObject(ancestor:DisplayObjectContainer, child:DisplayObject):BooleanReturns whether or not the ancestor is the child's ancestor.
Parametersancestor:DisplayObjectContainer |
|
child:DisplayObject |
Boolean — whether or not the ancestor is the child's ancestor.
|
| isDisplayObjectShowing | () | method |
public static function isDisplayObjectShowing(dis:DisplayObject):BooleanReturns whethor or not the display object is showing, which means that it is visible and it's ancestors(parent, parent's parent ...) is visible and on stage too.
Parametersdis:DisplayObject |
Boolean — trun if showing, not then false.
|
| layoutCompoundLabel | () | method |
public static function layoutCompoundLabel(c:Component, f:ASFont, text:String, icon:Icon, verticalAlignment:int, horizontalAlignment:int, verticalTextPosition:int, horizontalTextPosition:int, viewR:IntRectangle, iconR:IntRectangle, textR:IntRectangle, textIconGap:int):StringCompute and return the location of the icons origin, the location of origin of the text baseline, and a possibly clipped version of the compound labels string. Locations are computed relative to the viewR rectangle.
Parametersc:Component |
|
f:ASFont |
|
text:String |
|
icon:Icon |
|
verticalAlignment:int |
|
horizontalAlignment:int |
|
verticalTextPosition:int |
|
horizontalTextPosition:int |
|
viewR:IntRectangle |
|
iconR:IntRectangle |
|
textR:IntRectangle |
|
textIconGap:int |
String |
| layoutText | () | method |
public static function layoutText(f:ASFont, text:String, verticalAlignment:Number, horizontalAlignment:Number, viewR:IntRectangle, textR:IntRectangle):StringCompute and return the location of origin of the text baseline, and a possibly clipped version of the text string. Locations are computed relative to the viewR rectangle.
Parametersf:ASFont |
|
text:String |
|
verticalAlignment:Number |
|
horizontalAlignment:Number |
|
viewR:IntRectangle |
|
textR:IntRectangle |
String |
| updateAllComponentUI | () | method |
public static function updateAllComponentUI(stage:Stage = null):void
When call setLookAndFeel it will not change the UIs at created components.
Call this method to update all UIs of components that is on display list or popups.
stage:Stage (default = null) |
See also
| updateAllComponentUIInMemory | () | method |
public static function updateAllComponentUIInMemory():void
When call setLookAndFeel it will not change the UIs at created components.
Call this method to update all UIs of all components in memory whether it is displayable or not.
Take care to call this method, because there's may many component in memory since the garbage collector
may have not collected some useless components, so it many take a long time to complete updating.
See also
| updateChildrenUI | () | method |
public static function updateChildrenUI(dis:DisplayObject):voidAsks every component that is not a ui element containsed in the display object to updateUI(). This function will search all components contained in the specified object.
Parametersdis:DisplayObject — the display object
|
See also
| updateComponentTreeUI | () | method |
public static function updateComponentTreeUI(c:Component):voidA simple minded look and feel change: ask each node in the tree to updateUI() -- that is, to initialize its UI property with the current look and feel.
Parametersc:Component — the component used to search its owner ancestor
|
See also
| weakRegisterComponent | () | method |
public static function weakRegisterComponent(c:Component):voidAll component will be registered here.
Parametersc:Component |