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
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
Returns the width of the material's bitmapdata object.
BitmapMaterial
Public Methods
 MethodDefined by
  
BitmapFileMaterial
(url:String = "")
Creates a new BitmapFileMaterial object.
BitmapFileMaterial
Events
 EventSummaryDefined 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
 Inherited Dispatched when the material becomes visible in a view.Material
 Inherited Dispatched when the material becomes invisible in a view.Material
Constructor detail
BitmapFileMaterial()constructor
public function BitmapFileMaterial(url:String = "")Parameters
url:String (default = "") — The location of the bitmapasset to load.
Init Parameters
Event detail
loadErrorevent 
Event object type: away3dlite.events.MaterialEvent

Dispatched when the material fails to load a file.

loadProgressevent  
Event object type: away3dlite.events.MaterialEvent

Dispatched every frame the material is loading.

loadSuccessevent  
Event object type: away3dlite.events.MaterialEvent

Dispatched when the material completes a file load successfully.

Wiki link
Click to go to the wiki page for 'away3dlite.materials.BitmapFileMaterial'

Code examples

Comments