Class sandy.skin.TextureSkin

Implemented Interfaces

Skin

Description

TextureSkin

Field Index

alpha, smooth, texture

Inherited from BasicSkin

Method Index

new TextureSkin()
begin(), end(), getType(), setTransparency(), toString()

Inherited from BasicSkin

Constructor Detail

TextureSkin

public function TextureSkin(t:BitmapData, bSmooth:Boolean, alpha:Number)

Create a new TextureSkin.

Parameters

t: The actionScriptLink of the bitmap;
bSmooth: Boolean; if true perform smoothing (performance-intensive).

Field Detail

texture

public texture:BitmapData

smooth

public smooth:Boolean

alpha

public alpha:Number

Method Detail

setTransparency

public function setTransparency(pValue:Number):Void

Change the transparency of the texture. A value is expected to set the transparency. This value represents the percentage of transparency.

Parameters

pValueAn offset to change the transparency. A value between 0 and 100. If the given value isn't in this interval, it will be clamped.

getType

public function getType(Void):SkinType

getType, returns the type of the skin

Parameters

Void

Return

The appropriate SkinType

Specified By

getType() in sandy.skin.Skin

Overrides

getType() in sandy.skin.BasicSkin

begin

public function begin(f:IPolygon, mc:MovieClip):Void

Start the rendering of the Skin

Parameters

fThe face which is being rendered
mcThe mc where the face will be build.

Specified By

begin() in sandy.skin.Skin

end

public function end(f:IPolygon, mc:MovieClip):Void

Finish the rendering of the Skin

Parameters

fThe face which is being rendered
mcThe mc where the face will be build.

Specified By

end() in sandy.skin.Skin

toString

public function toString(Void):String