fsplayer.ui.skins.ISkinSizeController Interface

The ISkinSizeController interface provides methods for resizing, scaling and self-scaling of player skin. Advanced, Crystal and Lite skins currently implement support of this interface.

Methods

Method

Description

getAutoSize():Boolean

Returns true if self-scaling is been enabled for the skin, false otherwise

setAutoSize(autoSize:Boolean):Void

This method allows to set self-scaling property. If self-scaling is enabled, the skin will occupy entire Flash player window

getWidth():Number

Returns width of the skin in pixels

getHeight():Number

Returns height of the skin in pixels

setSize(width:Number, height:Number):Void

This method allows to set width and height in pixels of the window where skin is displayed. Applies to the skin if self-scaling is disabled

getScaleX():Number

Returns X-direction scaling value of the window where skin is displayed. Applies to the skin if self-scaling is disabled
Note:The default value is 100%

getScaleY():Number

Returns Y-direction scaling value of the window where skin is displayed. Applies to the skin if self-scaling is disabled
Note:The default value is 100%

setScale(scaleX:Number, scaleY:Number):Void

This method allows to set X and Y scaling of the window where skin is displayed

See also

ISkin Interface