Package | away3d.materials |
Class | public class AnimatedBitmapMaterial |
Inheritance | AnimatedBitmapMaterial ![]() ![]() ![]() |
Implements | ITriangleMaterial, IUVMaterial |
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
Returns 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 | |
![]() | debug : Boolean = false
Toggles debug mode: textured triangles are drawn with white outlines, precision correction triangles are drawn with blue outlines.
| BitmapMaterial | |
![]() | 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 | |
index : int [write-only]
Manually sets 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-perpective) of textures.
| BitmapMaterial | |
![]() | projectionVector : Number3D
Projects the texture in object space, ignoring the uv coordinates of the vertex objects.
| TransformBitmapMaterial | |
![]() | repeat : Boolean = false
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 | |
![]() | smooth : Boolean = false
Determines if texture bitmap is smoothed (bilinearly filtered) when drawn to screen.
| BitmapMaterial | |
![]() | 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
| BitmapMaterial | |
![]() | width : Number
Returns the width of the bitmapData being used as the material texture.
| BitmapMaterial |
Method | Defined by | ||
---|---|---|---|
AnimatedBitmapMaterial
(movie:MovieClip, init:Object = null)
Creates a new
AnimatedBitmapMaterial object. | AnimatedBitmapMaterial | ||
![]() |
addOnResize(listener:Function):void
Default method for adding a materialresize event listener
| BitmapMaterial | |
![]() |
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 | ||
![]() |
removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
| BitmapMaterial | |
![]() |
Renders a bitmapData surface object for the speficied face.
| TransformBitmapMaterial | |
![]() |
Renders a material layer for the specified triangle.
| BitmapMaterial | |
![]() |
Sends data from the material coupled with data from the
DrawTriangle primitive to the render session. | TransformBitmapMaterial | |
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 | ||
![]() |
Called once per render loop when material is visible.
| TransformBitmapMaterial |
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
[write-only]Manually sets the frame index of the animation.
Implementation public function set index(value:int):void
loop | property |
public var loop:Boolean
Indicates whether the animation will loop.
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.
|
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