static public CENTER:Numberstatic public TOP:Numberstatic public LEFT:Numberstatic public BOTTOM:Numberstatic public RIGHT:Numberstatic public HORIZONTAL:Numberstatic public VERTICAL:Numberstatic 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):VoidSets the root movieclip for components base on. Default is _root.
static public function createPaneToHold(com:Component, layout:LayoutManager, constraints:Object):ContainerCreates 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):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.
static public function getRoot(c:Component):ComponentReturns 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):VoidApply the font and color to the textfield.
text | |
font | |
color |
static public function applyTextFormatAndColor(text:TextField, textFormat:ASTextFormat, color:ASColor):VoidApply 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):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.
static public function layoutTextWidth(text:String, textR:Rectangle, availTextWidth:Number, tf:ASTextFormat):Stringbefore 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):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.