| Package | sandy.materials |
| Class | public class MovieMaterial |
| Inheritance | MovieMaterial BitmapMaterial Material |
Based on the AS2 class VideoSkin made by kiroukou and zeusprod
| Property | Defined by | ||
|---|---|---|---|
![]() | alpha : Number
Indicates the alpha transparency value of the material.
| BitmapMaterial | |
![]() | attributes : MaterialAttributes
The attributes of this material.
| Material | |
![]() | filters : Array
The array of filters for this material.
| Material | |
![]() | flags : uint
Contains specific material flags.
| Material | |
![]() | id : Number
The unique id of this material.
| Material | |
![]() | lightingEnable : Boolean = false
Specifies if the material can receive light and have light attributes applied to it.
| Material | |
![]() | maxRecurssionDepth : uint = 5
Maximum recurssion depth when using precision > 1 (which enables the perspective correction).
| BitmapMaterial | |
![]() | modified : Boolean
The modified state of this material.
| Material | |
| movie : Sprite [read-only]
Get the sprite used for the material.
| MovieMaterial | ||
![]() | precision : uint = 0
Precision of the bitmap mapping.
| BitmapMaterial | |
![]() | repeat : Boolean = true
The repeat property.
| Material | |
![]() | smooth : Boolean = false
This property enables smooth bitmap rendering when set to true.
| BitmapMaterial | |
![]() | texture : BitmapData
The texture ( bitmap ) of this material.
| BitmapMaterial | |
![]() | type : MaterialType
The material type of this material.
| Material | |
![]() | useVertexNormal : Boolean = false
Specify if the material use the vertex normal information.
| Material | |
| Method | Defined by | ||
|---|---|---|---|
|
MovieMaterial(p_oMovie:Sprite, p_nUpdateMS:uint = 40, p_oAttr:MaterialAttributes = null, p_bRemoveTransparentBorder:Boolean = false, p_nHeight:Number = 0, p_nWidth:Number = 0)
Creates a new MovieMaterial.
| MovieMaterial | ||
![]() |
Calls begin method of the MaterialAttributes associated with this material.
| Material | |
![]() |
Calls finish method of the MaterialAttributes associated with this material.
| Material | |
![]() |
| BitmapMaterial | |
![]() |
Renders the polygon dress in this material.
| Material | |
![]() |
Renders the sprite dress in this material.
| Material | |
![]() |
setTiling(p_nW:Number, p_nH:Number, p_nU:Number = 0, p_nV:Number = 0):void
Sets texture tiling and optional offset.
| BitmapMaterial | |
![]() |
setTransparency(p_nValue:Number):void
Changes the transparency of the texture.
| BitmapMaterial | |
|
start():void
Call this method when you want to start the material update.
| MovieMaterial | ||
|
stop():void
Call this method is case you would like to stop the automatic MovieMaterial texture update.
| MovieMaterial | ||
![]() |
toString():String
Returns a string representation of this object.
| BitmapMaterial | |
![]() |
Calls unlink method of the MaterialAttributes associated with this material.
| Material | |
| Constant | Defined by | ||
|---|---|---|---|
| DEFAULT_FILL_COLOR : uint = 0 [static]
Default color used to draw the bitmapdata content.
| MovieMaterial | ||
| movie | property |
movie:Sprite [read-only]Get the sprite used for the material.
Implementation public function get movie():Sprite
| MovieMaterial | () | constructor |
public function MovieMaterial(p_oMovie:Sprite, p_nUpdateMS:uint = 40, p_oAttr:MaterialAttributes = null, p_bRemoveTransparentBorder:Boolean = false, p_nHeight:Number = 0, p_nWidth:Number = 0)Creates a new MovieMaterial.
The MovieClip used for the material may contain animation.
It is converted to a bitmap to give it a perspective distortion.
To see the animation the bitmap has to be recreated from the MovieClip on a regular basis.
p_oMovie:Sprite — The Movieclip to be shown by this material.
|
|
p_nUpdateMS:uint (default = 40) — The update interval.
|
|
p_oAttr:MaterialAttributes (default = null) — The material attributes.
|
|
p_bRemoveTransparentBorder:Boolean (default = false) — Remove the transparent border.
|
|
p_nHeight:Number (default = 0) — Desired width ( chunk the movieclip )
|
|
p_nWidth:Number (default = 0) — Desired height ( chunk the movieclip )
|
See also
| start | () | method |
public function start():voidCall this method when you want to start the material update. This is automatically called at the material creation so basically it is used only when the MovieMaterial::stop() method has been called
| stop | () | method |
public function stop():voidCall this method is case you would like to stop the automatic MovieMaterial texture update.
| DEFAULT_FILL_COLOR | constant |
public static const DEFAULT_FILL_COLOR:uint = 0Default color used to draw the bitmapdata content. In case you need a specific color, change this value at your application initialization.