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
[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
 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
[read-only] 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
 Event Summary Defined By
 InheritedDispatched when the material becomes visible in a view.Material
 InheritedDispatched 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

Defines the movieclip used for rendering the material


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

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

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####
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