Class sandy.skin.MovieSkin

Implemented Interfaces

Skin

Description

MovieSkin Allow you to texture a 3D Object with a movieClip wich contains animation, picture, or video.

Field Index

dontAnimate, smooth, url

Inherited from BasicSkin

Method Index

new MovieSkin()
attach(), begin(), end(), getAnimate(), getMovie(), getType(), isAnimated(), isInitialized(), setAnimateUpdate(), toString(), updateTexture()

Inherited from BasicSkin

Constructor Detail

MovieSkin

public function MovieSkin(url:String, bDontAnimate:Boolean, bSmooth:Boolean)

Create a new MovieSkin.

Parameters

url: URL to load
bDontAnimate: Boolean; if true (the default in Sandy 1.2) we DISABLE the automatic update of the texture property.
bSmooth: Boolean; if true perform smoothing (performance-intensive).

Field Detail

smooth

public smooth:Boolean [Read Only]

url

public url:String [Read Only]

dontAnimate

public dontAnimate:Boolean

Method Detail

setAnimateUpdate

public function setAnimateUpdate(animate:Boolean):Void

attach

public function attach(mc:MovieClip):Void

isAnimated

public function isAnimated(Void):Boolean

getAnimate

public function getAnimate(Void):Boolean

isInitialized

public function isInitialized(Void):Boolean

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

getMovie

public function getMovie(Void):MovieClip

Returns the MovieClip used to texture objects with. Useful for example when you need to apply a function to the movieClip, such as stop(), gotoAndPlay(), etc..

Parameters

Void

Return

MovieClip The movieclip which is used to texture objects

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

Give a string representation of the class

Parameters

Void

Return

String the string representing the object.

updateTexture

public function updateTexture(Void):Void