| Package | away3d.materials |
| Class | public class MovieMaterial |
| Inheritance | MovieMaterial TransformBitmapMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
| Subclasses | VideoMaterial |
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number [override]
Defines an alpha value for the texture bitmap. | BitmapMaterial | |
| autoUpdate : Boolean
Indicates whether the texture bitmap is updated on every frame
| MovieMaterial | ||
![]() | bitmap : BitmapData
Defines the bitmapData object being used as the material texture. | BitmapMaterial | |
![]() | blendMode : String
Defines a blendMode value for the texture bitmap. | BitmapMaterial | |
| clipRect : Rectangle
A Rectangle object that defines the area of the source to draw. | MovieMaterial | ||
![]() | color : uint [override]
Defines a colored tint for the texture bitmap. | BitmapMaterial | |
![]() | colorTransform : ColorTransform
Defines a colortransform for the texture bitmap. | BitmapMaterial | |
![]() | debug : Boolean
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines. | ColorMaterial | |
![]() | globalProjection : Boolean
Determines whether a projected texture uses offsetX, offsetY and projectionVector values relative to scene cordinates. | TransformBitmapMaterial | |
| height : Number [override] [read-only]
Returns the height of the bitmapData being used as the material texture. | MovieMaterial | ||
![]() | id : int [read-only]
Unique identifier
| Material | |
| interactive : Boolean
Indicates whether the material will pass mouse interaction through to the movieclip
| MovieMaterial | ||
| lockH : Number
Number to lock the height of the draw region other than the source movieclip source. | MovieMaterial | ||
| lockW : Number
Number to lock the height of the draw region other than the source movieclip source. | MovieMaterial | ||
| movie : Sprite
Defines the movieclip used for rendering the material
| MovieMaterial | ||
![]() | offsetX : Number
Offsets the x coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | offsetY : Number
Offsets the y coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | projectionVector : Vector3D
Projects the texture in object space, ignoring the uv coordinates of the vertex objects. | TransformBitmapMaterial | |
![]() | repeat : Boolean
Determines if texture bitmap will tile in uv-space
| BitmapMaterial | |
![]() | rotation : Number
Rotates the texture in uv-space
| TransformBitmapMaterial | |
![]() | scaleX : Number
Scales the x coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | scaleY : Number
Scales the y coordinates of the texture in uv-space
| TransformBitmapMaterial | |
![]() | showNormals : Boolean
Displays the normals per face in pink lines. | BitmapMaterial | |
![]() | smooth : Boolean
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen. | BitmapMaterial | |
![]() | thickness : Number
Determines the thickness value of the wire
| WireframeMaterial | |
![]() | throughProjection : Boolean
Determines whether a projected texture is visble on the faces pointing away from the projection. | TransformBitmapMaterial | |
![]() | transform : Matrix
Transforms the texture in uv-space
| TransformBitmapMaterial | |
| transparent : Boolean
Defines the transparent property of the texture bitmap created from the movie
| MovieMaterial | ||
![]() | visible : Boolean [override] [read-only]
Indicates whether the material is visible
| WireColorMaterial | |
| width : Number [override] [read-only]
Returns the width of the bitmapData being used as the material texture. | MovieMaterial | ||
![]() | wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | |
![]() | wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial | |
| Method | Defined By | ||
|---|---|---|---|
MovieMaterial(movie:Sprite, init:Object = null)
Creates a new BitmapMaterial object. | MovieMaterial | ||
![]() | addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | |
![]() | [override]
Duplicates the material properties to another material object. | ColorMaterial | |
![]() | getPixel32(u:Number, v:Number):uint [override]
Returns the argb value of the bitmapData pixel at the given u v coordinate. | TransformBitmapMaterial | |
![]() | removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | |
update():void
Updates the texture bitmap with the current frame of the movieclip object
| MovieMaterial | ||
| autoUpdate | property |
public var autoUpdate:BooleanIndicates whether the texture bitmap is updated on every frame
| clipRect | property |
clipRect:RectangleA Rectangle object that defines the area of the source to draw. If null, no clipping occurs and the entire source object is drawn. Default is null.
public function get clipRect():Rectangle public function set clipRect(value:Rectangle):void| height | property |
height:Number [read-only] [override] Returns the height of the bitmapData being used as the material texture.
public function get height():Number| interactive | property |
public var interactive:BooleanIndicates whether the material will pass mouse interaction through to the movieclip
| lockH | property |
lockH:NumberNumber to lock the height of the draw region other than the source movieclip source. Default is the movieclip height.
public function get lockH():Number public function set lockH(value:Number):void| lockW | property |
lockW:NumberNumber to lock the height of the draw region other than the source movieclip source. Default is the movieclip height.
public function get lockW():Number public function set lockW(value:Number):void| movie | property |
movie:SpriteDefines the movieclip used for rendering the material
public function get movie():Sprite public function set movie(value:Sprite):void| transparent | property |
public var transparent:BooleanDefines the transparent property of the texture bitmap created from the movie
See also
| width | property |
width:Number [read-only] [override] Returns the width of the bitmapData being used as the material texture.
public function get width():Number| MovieMaterial | () | Constructor |
public function MovieMaterial(movie:Sprite, init:Object = null)
Creates a new BitmapMaterial object.
movie:Sprite — The sprite object to be used as the material's texture.
| |
init:Object (default = null) — [optional] An initialisation object for specifying default instance properties.
|
| update | () | method |
public function update():voidUpdates the texture bitmap with the current frame of the movieclip object
See also