Abstract class for A container with a decorative floor movieclip.
External content will be load automatically when the pane was create on the stage if floorEnabled.
static public PREFER_SIZE_BOTH:Number
LayoutManager
static public PREFER_SIZE_IMAGE:Number
static public PREFER_SIZE_LAYOUT:Number
LayoutManager
static public CENTER:Number
static public TOP:Number
static public LEFT:Number
static public BOTTOM:Number
static public RIGHT:Number
public function setPath(path:String):Void
Sets the path to load/attach image/animation file or symbol.
This method will cause reload()
action if the path
is different from old one.
path | the path of external image/animation file or the linkageID of a symbol. |
public function setPrefferSizeStrategy(p:Number):Void
Sets the preffered size counting strategy. Must be one of below:
public function getVerticalAlignment():Number
Returns the vertical alignment of the image/animation.
the verticalAlignment
property, one of the
following values:
public function setVerticalAlignment(alignment:Number):Void
Sets the vertical alignment of the image/animation.
alignment | one of the following values:
|
public function getHorizontalAlignment():Number
Returns the horizontal alignment of the image/animation.
the horizontalAlignment
property,
one of the following values:
public function setHorizontalAlignment(alignment:Number):Void
Sets the horizontal alignment of the image/animation.
alignment | one of the following values:
|
public function setScaleImage(b:Boolean):Void
Sets whether need scale the loaded image/animation to fit the pane's size.
Note:Take care to use scaleImage to load a swf, because swf has different size at different frame or when some symbol invisible/visible.
b | whether need scale the loaded image/animation to fit the pane's size. |
public function isScaleImage():Boolean
Returns whether need scale the loaded image/animation to fit the pane's size.
whether need scale the loaded image/animation to fit the pane's size.
public function setOffsetX(offset:Number):Void
Sets the x offset of the position of the loaded image/animation. If you dont want to locate the content to the topleft of the pane, you can set the offsets.
offset | the x offset |
public function setOffsetY(offset:Number):Void
Sets the y offset of the position of the loaded image/animation. If you dont want to locate the content to the topleft of the pane, you can set the offsets.
offset | the y offset |
public function getFloorMC():MovieClip
Returns the floor target movie clip.
You should take care to do operation at this MC, if you remove it,
the component will create another instead when next reload.
the movieclip where the extenal image/animation will be loaded in or the movieclip attached.
public function disableFloor():Void
Disable the load ability. Removes loaded image or animation(by remove the LoadTarget MovieClip). And will not load any thing from now on.
public function enableFloor():Void
Enable the load ability, can call reload to try to load content if it is not loaded yet.
public function isLoaded():Boolean
Returns is the extenal image/animation file was loaded ok.
true if the file loaded ok, otherwish return false
public function getFloorOriginalSize():Dimension
Returns the extenal image/animation/symbol 's original size. If the external content are not loaded yet, return null.
the extenal content's original size. null if it is not loaded yet.