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
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 | MovieMaterial | ||
color : uint
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 [read-only]
Returns the height of the bitmapData being used as the material texture.
| MovieMaterial | ||
id : int
Unique identifier
| Material | ||
interactive : Boolean
Indicates whether the material will pass mouse interaction through to the movieclip
| MovieMaterial | ||
lockH : Number | MovieMaterial | ||
lockW : Number | 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 : Number3D
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
Indicates whether the material is visible
| WireColorMaterial | ||
width : Number [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 | ||
Duplicates the material properties to another material object.
| ColorMaterial | ||
getPixel32(u:Number, v:Number):uint
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:Boolean
Indicates whether the texture bitmap is updated on every frame
clipRect | property |
clipRect:Rectangle
[read-write]Implementation
public function get clipRect():Rectangle
public function set clipRect(value:Rectangle):void
height | property |
height:Number
[read-only]Returns the height of the bitmapData being used as the material texture.
Implementation public function get height():Number
interactive | property |
public var interactive:Boolean
Indicates whether the material will pass mouse interaction through to the movieclip
lockH | property |
lockH:Number
[read-write]Implementation
public function get lockH():Number
public function set lockH(value:Number):void
lockW | property |
lockW:Number
[read-write]Implementation
public function get lockW():Number
public function set lockW(value:Number):void
movie | property |
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
transparent | property |
public var transparent:Boolean
Defines the transparent property of the texture bitmap created from the movie
See also
width | property |
width:Number
[read-only]Returns the width of the bitmapData being used as the material texture.
Implementation public function get width():Number
MovieMaterial | () | constructor |
public function MovieMaterial(movie:Sprite, init:Object = null)
Parameters
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.
|
transparent:Boolean (default = true) | |
autoUpdate:Boolean (default = true) | |
interactive:Boolean (default = false) | |
lockW:Number (default = movie.width) | |
lockH:Number (default = movie.height) |
update | () | method |
public function update():void
Updates the texture bitmap with the current frame of the movieclip object
See also