static public CENTER:Number
static public TOP:Number
static public LEFT:Number
static public BOTTOM:Number
static public RIGHT:Number
static public HORIZONTAL:Number
static public VERTICAL:Number
static public function getVisibleMaximizedBounds(mc:MovieClip):Rectangle
getVisibleMaximizedBounds(mc:MovieClip)
getVisibleMaximizedBounds() default to return the _root's visible bounds
Returns the currently visible maximized bounds at the stage of a MovieClip.
static public function setRootMovieClip(root:MovieClip):Void
Sets the root movieclip for components base on. Default is _root.
static public function createPaneToHold(com:Component, layout:LayoutManager, constraints:Object):Container
Creates and return a pane to hold the component with specified layout manager and constraints.
static public function getWindowAncestor(c:Component):JWindow
the first Window ancestor of c, or null if component is not contained inside a window
static public function updateAllComponentUI():Void
When call setLookAndFeel
it will not change the UIs at created components.
Call this method to update all existing component's UIs.
static public function updateComponentTreeUI(com:Component):Void
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.
static public function getRoot(c:Component):Component
Returns the root component for the current component tree.
the first ancestor of c that's ordinaryly a MCPanel or a JWindow(or JFrame).
static public function applyTextFontAndColor(text:TextField, font:ASFont, color:ASColor):Void
Apply the font and color to the textfield.
text | |
font | |
color |
static public function applyTextFormatAndColor(text:TextField, textFormat:ASTextFormat, color:ASColor):Void
Apply the textformat and color to the textfield.
text | |
textFormat | |
color |
static public function layoutCompoundLabel(f:ASFont, text:String, icon:Icon, verticalAlignment:Number, horizontalAlignment:Number, verticalTextPosition:Number, horizontalTextPosition:Number, viewR:Rectangle, iconR:Rectangle, textR:Rectangle, textIconGap:Number):String
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. Locations are computed relative to the viewR rectangle.
static public function layoutTextWidth(text:String, textR:Rectangle, availTextWidth:Number, tf:ASTextFormat):String
before call this method textR.width must be filled with correct value of whole text.
static public function layoutText(f:ASFont, text:String, verticalAlignment:Number, horizontalAlignment:Number, viewR:Rectangle, textR:Rectangle):String
Compute 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.