Package | away3d.materials |
Class | public class AnimatedBitmapMaterial |
Inheritance | AnimatedBitmapMaterial TransformBitmapMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
alpha : Number
Defines an alpha value for the texture bitmap.
| BitmapMaterial | ||
autoplay : Boolean
Indicates whether the animation will start playing on initialisation.
| AnimatedBitmapMaterial | ||
bitmap : BitmapData
Defines the bitmapData object being used as the material texture.
| BitmapMaterial | ||
blendMode : String
Defines a blendMode value for the texture bitmap.
| BitmapMaterial | ||
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
Returns the height of the bitmapData being used as the material texture.
| BitmapMaterial | ||
id : int
Unique identifier
| Material | ||
index : int
returns the frame index of the animation.
| AnimatedBitmapMaterial | ||
loop : Boolean
Indicates whether the animation will loop.
| AnimatedBitmapMaterial | ||
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 | ||
precision : Number
Corrects distortion caused by the affine transformation (non-perspective) of textures.
| BitmapMaterial | ||
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 | ||
sources : Array [read-only]
returns the frames of the animation.
| AnimatedBitmapMaterial | ||
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 | ||
visible : Boolean
Indicates whether the material is visible
| WireColorMaterial | ||
width : Number
Returns the width of the bitmapData being used as the material texture.
| BitmapMaterial | ||
wireAlpha : Number
Determines the alpha value of the wire
| WireframeMaterial | ||
wireColor : uint
24 bit color value representing the wire color
| WireframeMaterial |
Method | Defined by | ||
---|---|---|---|
AnimatedBitmapMaterial
(movie:MovieClip, init:Object = null)
Creates a new
AnimatedBitmapMaterial object. | AnimatedBitmapMaterial | ||
addOnMaterialUpdate(listener:Function):void
Default method for adding a materialupdated event listener
| Material | ||
clear():void
Manually clears all frames of the animation.
| AnimatedBitmapMaterial | ||
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 | ||
play():void
Resumes playback of the animation
| AnimatedBitmapMaterial | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material | ||
setFrames(sources:Array):void
Resets the cached bitmapData objects making up the animation with a pre-defined array.
| AnimatedBitmapMaterial | ||
setMovie(movie:MovieClip):void
Resets the movieclip used by the material.
| AnimatedBitmapMaterial | ||
stop():void
Halts playback of the animation
| AnimatedBitmapMaterial |
autoplay | property |
public var autoplay:Boolean
Indicates whether the animation will start playing on initialisation. If false, only the first frame is displayed.
index | property |
index:int
[read-write]returns the frame index of the animation.
Implementation public function get index():int
public function set index(value:int):void
loop | property |
public var loop:Boolean
Indicates whether the animation will loop.
sources | property |
sources:Array
[read-only]returns the frames of the animation. an array of bitmapdatas
Implementation public function get sources():Array
AnimatedBitmapMaterial | () | constructor |
public function AnimatedBitmapMaterial(movie:MovieClip, init:Object = null)
Parameters
movie:MovieClip — The movieclip to be bitmap cached for use in the material.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
loop:Boolean (default = true) | |
autoplay:Boolean (default = true) | |
index:Int (default = 0, min:0, max:(_emb==1) |
clear | () | method |
public function clear():void
Manually clears all frames of the animation. a new series of bitmapdatas will be required using the setFrames handler.
play | () | method |
public function play():void
Resumes playback of the animation
setFrames | () | method |
public function setFrames(sources:Array):void
Resets the cached bitmapData objects making up the animation with a pre-defined array.
Parameterssources:Array |
setMovie | () | method |
public function setMovie(movie:MovieClip):void
Resets the movieclip used by the material.
Parametersmovie:MovieClip — The movieclip to be bitmap cached for use in the material.
|
stop | () | method |
public function stop():void
Halts playback of the animation