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:NumberLayoutManager
static public PREFER_SIZE_IMAGE:Numberstatic public PREFER_SIZE_LAYOUT:NumberLayoutManager
static public CENTER:Numberstatic public TOP:Numberstatic public LEFT:Numberstatic public BOTTOM:Numberstatic public RIGHT:Numberpublic 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):VoidSets the preffered size counting strategy. Must be one of below:
public function getVerticalAlignment():NumberReturns the vertical alignment of the image/animation.
the verticalAlignment property, one of the
following values:
public function setVerticalAlignment(alignment:Number):VoidSets the vertical alignment of the image/animation.
alignment | one of the following values:
|
public function getHorizontalAlignment():NumberReturns the horizontal alignment of the image/animation.
the horizontalAlignment property,
one of the following values:
public function setHorizontalAlignment(alignment:Number):VoidSets the horizontal alignment of the image/animation.
alignment | one of the following values:
|
public function setScaleImage(b:Boolean):VoidSets 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():BooleanReturns 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):VoidSets 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):VoidSets 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():VoidDisable 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():VoidEnable the load ability, can call reload to try to load content if it is not loaded yet.
public function isLoaded():BooleanReturns is the extenal image/animation file was loaded ok.
true if the file loaded ok, otherwish return false
public function getFloorOriginalSize():DimensionReturns 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.