Packageaway3dlite.materials
Classpublic class BitmapFileMaterial
InheritanceBitmapFileMaterial Inheritance BitmapMaterial Inheritance Material Inheritance flash.events.EventDispatcher

Bitmap material that loads it's texture from an external bitmapasset file.



Public Properties
 PropertyDefined By
 Inheritedbitmap : BitmapData
Defines the bitmapData object to be used as the material's texture.
BitmapMaterial
 Inheriteddebug : Boolean
Switches on the debug outlines around each face drawn with the material.
Material
 Inheritedheight : int
[read-only] Returns the height of the material's bitmapdata object.
BitmapMaterial
 Inheritedrepeat : Boolean
Defines whether repeat is used when drawing the material.
BitmapMaterial
 Inheritedsmooth : Boolean
Defines whether smoothing is used when drawing the material.
BitmapMaterial
 Inheritedwidth : int
[read-only] Returns the width of the material's bitmapdata object.
BitmapMaterial
Public Methods
 MethodDefined By
  
BitmapFileMaterial(url:String)
Creates a new BitmapFileMaterial object.
BitmapFileMaterial
Events
 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
 InheritedDispatched when the material becomes visible in a view.Material
 InheritedDispatched when the material becomes invisible in a view.Material
Constructor Detail
BitmapFileMaterial()Constructor
public function BitmapFileMaterial(url:String)

Creates a new BitmapFileMaterial object.

Parameters
url:String — The location of the bitmapasset to load.
####INIT####
Event Detail
loadError Event
Event Object Type: away3dlite.events.MaterialEvent
MaterialEvent.type property = away3dlite.events.MaterialEvent

Dispatched when the material fails to load a file.

loadProgress Event  
Event Object Type: away3dlite.events.MaterialEvent
MaterialEvent.type property = away3dlite.events.MaterialEvent

Dispatched every frame the material is loading.

loadSuccess Event  
Event Object Type: away3dlite.events.MaterialEvent
MaterialEvent.type property = away3dlite.events.MaterialEvent

Dispatched when the material completes a file load successfully.