| Package | away3d.materials |
| Class | public class AnimatedBitmapMaterial |
| Inheritance | AnimatedBitmapMaterial TransformBitmapMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
| Property | Defined By | ||
|---|---|---|---|
![]() | alpha : Number [override]
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 [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 [read-only]
Returns the height of the bitmapData being used as the material texture. | BitmapMaterial | |
![]() | id : int [read-only]
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 | |
![]() | 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 | |
| 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 [override] [read-only]
Indicates whether the material is visible
| WireColorMaterial | |
![]() | width : Number [read-only]
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 | ||
![]() | [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 | |
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:BooleanIndicates whether the animation will start playing on initialisation. If false, only the first frame is displayed.
| index | property |
index:intreturns the frame index of the animation.
public function get index():int public function set index(value:int):void| loop | property |
public var loop:BooleanIndicates whether the animation will loop.
| sources | property |
sources:Array [read-only] returns the frames of the animation. an array of bitmapdatas
public function get sources():Array| AnimatedBitmapMaterial | () | Constructor |
public function AnimatedBitmapMaterial(movie:MovieClip, init:Object = null)
Creates a new AnimatedBitmapMaterial object.
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.
|
| clear | () | method |
public function clear():voidManually clears all frames of the animation. a new series of bitmapdatas will be required using the setFrames handler.
| play | () | method |
public function play():voidResumes playback of the animation
| setFrames | () | method |
public function setFrames(sources:Array):voidResets the cached bitmapData objects making up the animation with a pre-defined array.
Parameters
sources:Array |
| setMovie | () | method |
public function setMovie(movie:MovieClip):voidResets the movieclip used by the material.
Parameters
movie:MovieClip — The movieclip to be bitmap cached for use in the material.
|
| stop | () | method |
public function stop():voidHalts playback of the animation