| Package | sandy.materials |
| Class | public class VideoMaterial |
| Inheritance | VideoMaterial BitmapMaterial Material |
Based on the AS2 class VideoSkin made by kiroukou and zeusprod
| Method | Defined by | ||
|---|---|---|---|
|
VideoMaterial(p_oVideo:Video, p_nUpdateMS:uint = 40, p_oAttr:MaterialAttributes = null)
Creates a new VideoMaterial.
| VideoMaterial | ||
![]() |
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.
| VideoMaterial | ||
|
stop():void
Call this method is case you would like to stop the automatic video material graphics update.
| VideoMaterial | ||
![]() |
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.
| VideoMaterial | ||
| VideoMaterial | () | constructor |
public function VideoMaterial(p_oVideo:Video, p_nUpdateMS:uint = 40, p_oAttr:MaterialAttributes = null)Creates a new VideoMaterial.
The video is converted to a bitmap to give it a perspective distortion.
To see the animation, the bitmap has to be recreated from the video on a regular basis.
p_oVideo:Video — The video to be shown by this material.
|
|
p_nUpdateMS:uint (default = 40) — The update interval.
|
|
p_oAttr:MaterialAttributes (default = null) — The material attributes.
|
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 VideoMaterial::stop() method has been called
| stop | () | method |
public function stop():voidCall this method is case you would like to stop the automatic video material graphics 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.