Packageaway3dlite.materials
Classpublic class MovieMaterial
InheritanceMovieMaterial Inheritance BitmapMaterial Inheritance Material Inheritance flash.events.EventDispatcher

Public Properties
 PropertyDefined by
  autoUpdate : Boolean
Indicates whether the texture bitmap is updated on every frame
MovieMaterial
 Inheritedbitmap : BitmapData
Defines the bitmapData object to be used as the material's texture.
BitmapMaterial
 Inheriteddebug : Boolean
Switches on the debug outlines around each face drawn with the material.
Material
 Inheritedheight : int
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
 Inheritedrepeat : Boolean
Defines whether repeat is used when drawing the material.
BitmapMaterial
 Inheritedsmooth : 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
 Inheritedwidth : int
Returns the width of the material's bitmapdata object.
BitmapMaterial
Public Methods
 MethodDefined 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
Events
 EventSummaryDefined by
 Inherited Dispatched when the material becomes visible in a view.Material
 Inherited Dispatched when the material becomes invisible in a view.Material
Property detail
autoUpdateproperty
public var autoUpdate:Boolean

Indicates whether the texture bitmap is updated on every frame

movieproperty 
movie:Sprite  [read-write]

Defines the movieclip used for rendering the material

Implementation
    public function get movie():Sprite
    public function set movie(value:Sprite):void
rectproperty 
rect:Rectangle  [read-write]

Defines the rectangle of the movie to be rendered into the texture bitmap.

Implementation
    public function get rect():Rectangle
    public function set rect(value:Rectangle):void

See also

movie
transparentproperty 
transparent:Boolean  [read-write]

Defines the transparent property of the texture bitmap created from the movie

Implementation
    public function get transparent():Boolean
    public function set transparent(value:Boolean):void

See also

movie
Constructor detail
MovieMaterial()constructor
public function MovieMaterial(movie:Sprite, rect:Rectangle = null, autoUpdate:Boolean = true, transparent:Boolean = true)Parameters
movie:Sprite
 
rect:Rectangle (default = null)
 
autoUpdate:Boolean (default = true)
 
transparent:Boolean (default = true)
Init Parameters
Method detail
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

movie
autoUpdate
Wiki link
Click to go to the wiki page for 'away3dlite.materials.MovieMaterial'

Code examples

Comments