Packageaway3dlite.materials
Classpublic class BitmapMaterial
InheritanceBitmapMaterial Inheritance Material Inheritance flash.events.EventDispatcher
SubclassesBitmapFileMaterial, Dot3BitmapMaterial, MovieMaterial

Basic bitmap material

Public Properties
 PropertyDefined by
  bitmap : 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
  height : int
[read-only] Returns the height of the material's bitmapdata object.
BitmapMaterial
  repeat : Boolean
Defines whether repeat is used when drawing the material.
BitmapMaterial
  smooth : Boolean
Defines whether smoothing is used when drawing the material.
BitmapMaterial
  width : int
[read-only] Returns the width of the material's bitmapdata object.
BitmapMaterial
Public Methods
 MethodDefined by
  
BitmapMaterial
(bitmap:BitmapData = null)
Creates a new BitmapMaterial object.
BitmapMaterial
Events
 EventSummaryDefined by
 Inherited Dispatched when the material becomes visible in a view.Material
 Inherited Dispatched when the material becomes invisible in a view.Material
Property detail
bitmapproperty
bitmap:BitmapData  [read-write]

Defines the bitmapData object to be used as the material's texture.

Implementation
    public function get bitmap():BitmapData
    public function set bitmap(value:BitmapData):void
heightproperty 
height:int  [read-only]

Returns the height of the material's bitmapdata object.

Implementation
    public function get height():int
repeatproperty 
repeat:Boolean  [read-write]

Defines whether repeat is used when drawing the material.

Implementation
    public function get repeat():Boolean
    public function set repeat(value:Boolean):void
smoothproperty 
smooth:Boolean  [read-write]

Defines whether smoothing is used when drawing the material.

Implementation
    public function get smooth():Boolean
    public function set smooth(value:Boolean):void
widthproperty 
width:int  [read-only]

Returns the width of the material's bitmapdata object.

Implementation
    public function get width():int
Constructor detail
BitmapMaterial()constructor
public function BitmapMaterial(bitmap:BitmapData = null)Parameters
bitmap:BitmapData (default = null) — The bitmapData object to be used as the material's texture.
Init Parameters
Wiki link
Click to go to the wiki page for 'away3dlite.materials.BitmapMaterial'

Code examples

Comments