A sprite that can be styled using a StyleSheet. The stylesheet can specify a background image
to be used or alternatively a background color gradient.
bgImageHolder:Sprite
[read-only]Implementation
protected function get bgImageHolder():Sprite
loader:ResourceLoader
[write-only]Implementation
protected function set loader(value:ResourceLoader):void
redrawing:Boolean
[read-only]Implementation
public function get redrawing():Boolean
rootStyle:Object
[write-only]
Sets the style properties object. This sprite is redrawn accoring
to the new style properties.
Implementation
public function set rootStyle(value:Object):void
See also
style:FlowStyleSheet
[read-write]Implementation
public function get style():FlowStyleSheet
public function set style(value:FlowStyleSheet):void
public function StyleableSprite(styleName:String = null, errorHandler:ErrorHandler = null, loader:ResourceLoader = null)
Creates a new StyleableSprite.
Parameters
| styleName:String (default = null )
|
|
| errorHandler:ErrorHandler (default = null )
|
|
| loader:ResourceLoader (default = null )
|
public function addToRootStyle(style:Object):void
Parameters
public function animate(styleProps:Object):Object
Currently just returns the root style object.
Parameters
Returns
protected function createMask():Sprite
Creates a sprite that is equal to the size of this sprite.
Returns
| Sprite — a sprite that can be used as a mask to hide display objects
that exceed of go outside the borders of this sprite
|
public function css(styleProps:Object = null):Object
Parameters
| styleProps:Object (default = null )
|
Returns
protected function onRedraw():void
Called when the background has been redrawn.
protected function onSetRootStyle(style:Object):void
Parameters
protected function onSetStyle(style:FlowStyleSheet):void
Parameters
protected function onSetStyleObject(styleName:String, style:Object):void
Parameters
| styleName:String |
|
| style:Object |
public override function setSize(width:Number, height:Number):void
Redraws the sprite, by calling redraw()
. Overriding method should call either super.onResize()
to properly have the background occupy the who space.
Parameters
| width:Number |
|
| height:Number |