Package | away3d.materials |
Class | public class BitmapFileMaterial |
Inheritance | BitmapFileMaterial TransformBitmapMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
alpha : Number
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
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 | ||
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 : 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 | ||
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 | ||
---|---|---|---|
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 | ||
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 | ||
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]Implementation
public function get loader():Loader
BitmapFileMaterial | () | constructor |
public function BitmapFileMaterial(url:String = "", init:Object = null)
Parameters
url:String (default = " ") — The location of the bitmapasset to load.
|
|
init:Object (default = null ) — [optional] An initialisation object for specifying default instance properties.
|
checkPolicyFile:Boolean (default = false) |
addOnLoadError | () | method |
public function addOnLoadError(listener:Function):void
Default method for adding a loadError event listener
Parameterslistener:Function — The listener function
|
addOnLoadProgress | () | method |
public function addOnLoadProgress(listener:Function):void
Default method for adding a loadProgress event listener
Parameterslistener:Function — The listener function
|
addOnLoadSuccess | () | method |
public function addOnLoadSuccess(listener:Function):void
Default method for adding a loadSuccess event listener
Parameterslistener:Function — The listener function
|
removeOnLoadError | () | method |
public function removeOnLoadError(listener:Function):void
Default method for removing a loadError event listener
Parameterslistener:Function — The listener function
|
removeOnLoadProgress | () | method |
public function removeOnLoadProgress(listener:Function):void
Default method for removing a loadProgress event listener
Parameterslistener:Function — The listener function
|
removeOnLoadSuccess | () | method |
public function removeOnLoadSuccess(listener:Function):void
Default method for removing a loadSuccess event listener
Parameterslistener:Function — The listener function
|
loadError | event |
loadProgress | event |
loadSuccess | event |
away3d.events.MaterialEvent
Dispatched when the material completes a file load successfully.