Package | away3dlite.materials |
Class | public class MovieMaterial |
Inheritance | MovieMaterial BitmapMaterial Material flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
autoUpdate : Boolean
Indicates whether the texture bitmap is updated on every frame
| MovieMaterial | ||
bitmap : BitmapData
Defines the bitmapData object to be used as the material's texture. | BitmapMaterial | ||
debug : Boolean
Switches on the debug outlines around each face drawn with the material. | Material | ||
height : int [read-only]
Returns the height of the material's bitmapdata object. | BitmapMaterial | ||
movie : Sprite
Defines the movieclip used for rendering the material
| MovieMaterial | ||
rect : Rectangle
Defines the rectangle of the movie to be rendered into the texture bitmap. | MovieMaterial | ||
repeat : Boolean
Defines whether repeat is used when drawing the material. | BitmapMaterial | ||
smooth : Boolean
Defines whether smoothing is used when drawing the material. | BitmapMaterial | ||
transparent : Boolean
Defines the transparent property of the texture bitmap created from the movie
| MovieMaterial | ||
width : int [read-only]
Returns the width of the material's bitmapdata object. | BitmapMaterial |
Method | Defined By | ||
---|---|---|---|
MovieMaterial(movie:Sprite, rect:Rectangle = null, autoUpdate:Boolean = true, transparent:Boolean = true) | MovieMaterial | ||
update():void
Manually updates the texture bitmap with the current frame of the movie display object. | MovieMaterial |
autoUpdate | property |
public var autoUpdate:Boolean
Indicates whether the texture bitmap is updated on every frame
movie | property |
movie:Sprite
Defines the movieclip used for rendering the material
public function get movie():Sprite
public function set movie(value:Sprite):void
rect | property |
rect:Rectangle
Defines the rectangle of the movie to be rendered into the texture bitmap.
public function get rect():Rectangle
public function set rect(value:Rectangle):void
See also
transparent | property |
transparent:Boolean
Defines the transparent property of the texture bitmap created from the movie
public function get transparent():Boolean
public function set transparent(value:Boolean):void
See also
MovieMaterial | () | Constructor |
public function MovieMaterial(movie:Sprite, rect:Rectangle = null, autoUpdate:Boolean = true, transparent:Boolean = true)
movie:Sprite | |
rect:Rectangle (default = null )
| |
autoUpdate:Boolean (default = true )
| |
transparent:Boolean (default = true )
|
update | () | method |
public function update():void
Manually updates the texture bitmap with the current frame of the movie
display object.
Automatically triggered unless autoUpdate
is set to false.
See also