Packageaway3d.materials
Interfacepublic interface IUVMaterial extends IMaterial
ImplementorsAnimatedBitmapMaterial, BitmapFileMaterial, BitmapMaterial, DiffuseDot3Shader, MovieMaterial, TransformBitmapMaterial, WhiteShadingBitmapMaterial

Interface for materials that use uv texture coordinates

Public Properties
 PropertyDefined by
  bitmap : BitmapData
[read-only] Returns the bitmapData object being used as the material texture.
IUVMaterial
  height : Number
[read-only] Returns the height of the bitmapData being used as the material texture.
IUVMaterial
 Inheritedvisible : Boolean
Indicates whether the material is visible
IMaterial
  width : Number
[read-only] Returns the width of the bitmapData being used as the material texture.
IUVMaterial
Public Methods
 MethodDefined by
  
addOnResize(listener:Function):void
Default method for adding a materialresize event listener
IUVMaterial
  
getPixel32(u:Number, v:Number):uint
Returns the argb value of the bitmapData pixel at the given u v coordinate.
IUVMaterial
  
removeOnResize(listener:Function):void
Default method for removing a materialresize event listener
IUVMaterial
Property detail
bitmapproperty
bitmap:BitmapData  [read-only]

Returns the bitmapData object being used as the material texture.

Implementation
    public function get bitmap():BitmapData
heightproperty 
height:Number  [read-only]

Returns the height of the bitmapData being used as the material texture.

Implementation
    public function get height():Number
widthproperty 
width:Number  [read-only]

Returns the width of the bitmapData being used as the material texture.

Implementation
    public function get width():Number
Method detail
addOnResize()method
public function addOnResize(listener:Function):void

Default method for adding a materialresize event listener

Parameters
listener:Function — The listener function
getPixel32()method 
public function getPixel32(u:Number, v:Number):uint

Returns the argb value of the bitmapData pixel at the given u v coordinate.

Parameters
u:Number — The u (horizontal) texture coordinate.
 
v:Number — The v (verical) texture coordinate.

Returns
uint — The argb pixel value.
removeOnResize()method 
public function removeOnResize(listener:Function):void

Default method for removing a materialresize event listener

Parameters
listener:Function — The listener function
Wiki link
Click to go to the wiki page for ####WIKI####

Code examples

Comments