Package | away3d.materials |
Class | public class BitmapFileMaterial |
Inheritance | BitmapFileMaterial 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 | ||
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 | ||
loader : Loader [read-only] | BitmapFileMaterial | ||
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 | ||
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 | ||
---|---|---|---|
BitmapFileMaterial(url:String, init:Object = null)
Creates a new BitmapFileMaterial object. | BitmapFileMaterial | ||
addOnLoadError(listener:Function):void
Default method for adding a loadError event listener
| BitmapFileMaterial | ||
addOnLoadProgress(listener:Function):void
Default method for adding a loadProgress event listener
| BitmapFileMaterial | ||
addOnLoadSuccess(listener:Function):void
Default method for adding a loadSuccess event listener
| BitmapFileMaterial | ||
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 | ||
removeOnLoadError(listener:Function):void
Default method for removing a loadError event listener
| BitmapFileMaterial | ||
removeOnLoadProgress(listener:Function):void
Default method for removing a loadProgress event listener
| BitmapFileMaterial | ||
removeOnLoadSuccess(listener:Function):void
Default method for removing a loadSuccess event listener
| BitmapFileMaterial | ||
removeOnMaterialUpdate(listener:Function):void
Default method for removing a materialupdated event listener
| Material |
Event | Summary | Defined By | ||
---|---|---|---|---|
Dispatched when the material fails to load a file. | BitmapFileMaterial | |||
Dispatched every frame the material is loading. | BitmapFileMaterial | |||
Dispatched when the material completes a file load successfully. | BitmapFileMaterial | |||
Dispatched when the any visual aspect of the material changes. | Material |
loader | property |
loader:Loader
[read-only] public function get loader():Loader
BitmapFileMaterial | () | Constructor |
public function BitmapFileMaterial(url:String, init:Object = null)
Creates a new BitmapFileMaterial
object.
url:String — The location of the bitmapasset to load.
| |
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
addOnLoadError | () | method |
public function addOnLoadError(listener:Function):void
Default method for adding a loadError event listener
Parameters
listener:Function — The listener function
|
addOnLoadProgress | () | method |
public function addOnLoadProgress(listener:Function):void
Default method for adding a loadProgress event listener
Parameters
listener:Function — The listener function
|
addOnLoadSuccess | () | method |
public function addOnLoadSuccess(listener:Function):void
Default method for adding a loadSuccess event listener
Parameters
listener:Function — The listener function
|
removeOnLoadError | () | method |
public function removeOnLoadError(listener:Function):void
Default method for removing a loadError event listener
Parameters
listener:Function — The listener function
|
removeOnLoadProgress | () | method |
public function removeOnLoadProgress(listener:Function):void
Default method for removing a loadProgress event listener
Parameters
listener:Function — The listener function
|
removeOnLoadSuccess | () | method |
public function removeOnLoadSuccess(listener:Function):void
Default method for removing a loadSuccess event listener
Parameters
listener:Function — The listener function
|
loadError | Event |
away3d.events.MaterialEvent
away3d.events.MaterialEvent
Dispatched when the material fails to load a file.
loadProgress | Event |
away3d.events.MaterialEvent
away3d.events.MaterialEvent
Dispatched every frame the material is loading.
loadSuccess | Event |
away3d.events.MaterialEvent
away3d.events.MaterialEvent
Dispatched when the material completes a file load successfully.