| Package | org.flowplayer.view |
| Class | public class StyleableSprite |
| Inheritance | StyleableSprite AbstractSprite flash.display.Sprite |
| Implements | Styleable |
| Property | Defined by | ||
|---|---|---|---|
![]() | height : Number | AbstractSprite | |
| redrawing : Boolean [read-only]
| StyleableSprite | ||
| rootStyle : Object [write-only]
Sets the style properties object.
| StyleableSprite | ||
| style : FlowStyleSheet | StyleableSprite | ||
![]() | width : Number | AbstractSprite | |
| Property | Defined by | ||
|---|---|---|---|
| bgImageHolder : Sprite [read-only]
| StyleableSprite | ||
![]() | _height : Number = 0
The managed height value.
| AbstractSprite | |
| loader : ResourceLoader [write-only]
| StyleableSprite | ||
![]() | log : Log | AbstractSprite | |
![]() | managedHeight : Number | AbstractSprite | |
![]() | managedWidth : Number | AbstractSprite | |
![]() | _width : Number = 0
The managed width value.
| AbstractSprite | |
| Method | Defined by | ||
|---|---|---|---|
|
StyleableSprite(styleName:String = null, errorHandler:ErrorHandler = null, loader:ResourceLoader = null)
Creates a new StyleableSprite.
| StyleableSprite | ||
|
addToRootStyle(style:Object):void
| StyleableSprite | ||
|
animate(styleProps:Object):Object
| StyleableSprite | ||
|
css(styleProps:Object = null):Object
| StyleableSprite | ||
![]() |
draw(event:LayoutEvent):void
| AbstractSprite | |
|
onBeforeAnimate(styleProps:Object):void
Currently just returns the root style object.
| StyleableSprite | ||
|
onBeforeCss(styleProps:Object = null):void
| StyleableSprite | ||
|
setSize(width:Number, height:Number):void
Redraws the sprite, by calling
redraw(). | StyleableSprite | ||
| Method | Defined by | ||
|---|---|---|---|
|
createMask():Sprite
Creates a sprite that is equal to the size of this sprite.
| StyleableSprite | ||
|
onRedraw():void
Called when the background has been redrawn.
| StyleableSprite | ||
![]() |
onResize():void
| AbstractSprite | |
|
onSetRootStyle(style:Object):void
| StyleableSprite | ||
|
onSetStyle(style:FlowStyleSheet):void
| StyleableSprite | ||
|
onSetStyleObject(styleName:String, style:Object):void
| StyleableSprite | ||
| bgImageHolder | property |
bgImageHolder:Sprite [read-only]Implementation
protected function get bgImageHolder():Sprite
| loader | property |
loader:ResourceLoader [write-only]Implementation
protected function set loader(value:ResourceLoader):void
| redrawing | property |
redrawing:Boolean [read-only]Implementation
public function get redrawing():Boolean
| rootStyle | property |
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 | property |
style:FlowStyleSheet [read-write]Implementation
public function get style():FlowStyleSheet
public function set style(value:FlowStyleSheet):void
| StyleableSprite | () | constructor |
public function StyleableSprite(styleName:String = null, errorHandler:ErrorHandler = null, loader:ResourceLoader = null)Creates a new StyleableSprite.
ParametersstyleName:String (default = null) |
|
errorHandler:ErrorHandler (default = null) |
|
loader:ResourceLoader (default = null) |
| addToRootStyle | () | method |
public function addToRootStyle(style:Object):voidParameters
style:Object |
| animate | () | method |
public function animate(styleProps:Object):ObjectParameters
styleProps:Object |
Object |
| createMask | () | method |
protected function createMask():SpriteCreates a sprite that is equal to the size of this sprite.
ReturnsSprite — a sprite that can be used as a mask to hide display objects
that exceed of go outside the borders of this sprite
|
| css | () | method |
public function css(styleProps:Object = null):ObjectParameters
styleProps:Object (default = null) |
Object |
| onBeforeAnimate | () | method |
public function onBeforeAnimate(styleProps:Object):voidCurrently just returns the root style object.
ParametersstyleProps:Object |
| onBeforeCss | () | method |
public function onBeforeCss(styleProps:Object = null):voidParameters
styleProps:Object (default = null) |
| onRedraw | () | method |
protected function onRedraw():voidCalled when the background has been redrawn.
| onSetRootStyle | () | method |
protected function onSetRootStyle(style:Object):voidParameters
style:Object |
| onSetStyle | () | method |
protected function onSetStyle(style:FlowStyleSheet):voidParameters
style:FlowStyleSheet |
| onSetStyleObject | () | method |
protected function onSetStyleObject(styleName:String, style:Object):voidParameters
styleName:String |
|
style:Object |
| setSize | () | method |
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.
width:Number |
|
height:Number |