| Package | away3d.materials |
| Class | public class BitmapFileMaterial |
| Inheritance | BitmapFileMaterial TransformBitmapMaterial BitmapMaterial LayerMaterial ColorMaterial WireColorMaterial WireframeMaterial Material flash.events.EventDispatcher |
| 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 | ||
| 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.