Packageaway3d.sprites
Classpublic class Sprite3D
InheritanceSprite3D Inheritance Element Inheritance flash.events.EventDispatcher
Subclasses DepthOfFieldSprite, DirectionalSprite, MovieClipSprite

A graphics element used to represent objects that always face the camera

See also

away3d.core.base.Mesh


Public Properties
 PropertyDefined By
  align : String
Defines how the 3d sprite is aligned to its vertex
Sprite3D
 Inheritedcommands : Vector.<String>
[read-only] Returns an array of drawing command strings that make up the 3d element.
Element
  distanceScaling : Boolean
Defines if the sprite should scale with distance.
Sprite3D
 Inheritedextra : Object
An optional untyped object that can contain used-defined properties.
Element
  height : Number
Defines the height of the 3d sprite.
Sprite3D
  material : Material
Defines the material of the 3d sprite.
Sprite3D
  maxX : Number
[override] [read-only] Returns the maximum x value of the segment
Sprite3D
  maxY : Number
[override] [read-only] Returns the maximum y value of the segment
Sprite3D
  maxZ : Number
[override] [read-only] Returns the maximum z value of the segment
Sprite3D
  minX : Number
[override] [read-only] Returns the minimum x value of the face
Sprite3D
  minY : Number
[override] [read-only] Returns the minimum y value of the face
Sprite3D
  minZ : Number
[override] [read-only] Returns the minimum y value of the face
Sprite3D
 Inheritedparent : Geometry
Defines the parent 3d object of the segment.
Element
 InheritedpathCommands : Array
[read-only] Returns an array of drawing command objects that are used by the face.
Element
  radius2 : Number
[override] [read-only] Returns the squared bounding radius of the 3d sprite.
Sprite3D
  rotation : Number
Defines the rotation of the 3d sprite.
Sprite3D
  scaling : Number
Defines the scaling of the 3d sprite when an BitmapMaterial is used.
Sprite3D
  spriteVO : SpriteVO
Sprite3D
 InheritedvertexDirty : Boolean
Element
 Inheritedvertices : Vector.<Vertex>
[read-only] Returns an array of vertex objects that make up the 3d element.
Element
 Inheritedvisible : Boolean
Determines whether the 3d element is visible in the scene.
Element
  width : Number
Defines the width of the 3d sprite.
Sprite3D
  x : Number
Defines the x coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.
Sprite3D
  y : Number
Defines the y coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.
Sprite3D
  z : Number
Defines the z coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.
Sprite3D
Protected Properties
 PropertyDefined By
 Inherited_commands : Vector.<String>
Element
 Inherited_index : int
Element
 Inherited_lastAddedVertex : Vertex
Element
 Inherited_pathCommands : Array
Element
 Inherited_uvs : Vector.<UV>
Element
 Inherited_vertices : Vector.<Vertex>
Element
Public Methods
 MethodDefined By
  
Sprite3D(material:Material = null, width:Number = 10, height:Number = 10, rotation:Number = 0, align:String = center, scaling:Number = 1, distanceScaling:Boolean = true)
Creates a new Billboard object.
Sprite3D
 Inherited
addOnMappingChange(listener:Function):void
Default method for adding a mappingchanged event listener
Element
 Inherited
addOnVertexChange(listener:Function):void
Default method for adding a vertexchanged event listener
Element
 Inherited
addOnVertexValueChange(listener:Function):void
Default method for adding a vertexvaluechanged event listener
Element
 Inherited
addOnVisibleChange(listener:Function):void
Default method for adding a visiblechanged event listener
Element
 Inherited
offset(x:Number, y:Number, z:Number):void
Offsets the vertices of the face by given amounts in x, y and z.
Element
 Inherited
removeOnMappingChange(listener:Function):void
Default method for removing a mappingchanged event listener
Element
 Inherited
removeOnVertexChange(listener:Function):void
Default method for removing a vertexchanged event listener
Element
 Inherited
removeOnVertexValueChange(listener:Function):void
Default method for removing a vertexvaluechanged event listener
Element
 Inherited
removeOnVisibleChange(listener:Function):void
Default method for removing a visiblechanged event listener
Element
Events
 Event Summary Defined By
  Dispatched when the material of the sprite3d changes.Sprite3D
 InheritedDispatched when the vertex of a 3d element changes.Element
 InheritedDispatched when the vertex value of a 3d element changes.Element
 InheritedDispatched when the visiblity of a 3d element changes.Element
Property Detail
alignproperty
align:String

Defines how the 3d sprite is aligned to its vertex


Implementation
    public function get align():String
    public function set align(value:String):void

See also

distanceScalingproperty 
distanceScaling:Boolean

Defines if the sprite should scale with distance. Defaults to true


Implementation
    public function get distanceScaling():Boolean
    public function set distanceScaling(value:Boolean):void
heightproperty 
height:Number

Defines the height of the 3d sprite.


Implementation
    public function get height():Number
    public function set height(value:Number):void
materialproperty 
material:Material

Defines the material of the 3d sprite.


Implementation
    public function get material():Material
    public function set material(value:Material):void
maxXproperty 
maxX:Number  [read-only] [override]

Returns the maximum x value of the segment


Implementation
    public function get maxX():Number

See also

maxYproperty 
maxY:Number  [read-only] [override]

Returns the maximum y value of the segment


Implementation
    public function get maxY():Number

See also

maxZproperty 
maxZ:Number  [read-only] [override]

Returns the maximum z value of the segment


Implementation
    public function get maxZ():Number

See also

minXproperty 
minX:Number  [read-only] [override]

Returns the minimum x value of the face


Implementation
    public function get minX():Number

See also

minYproperty 
minY:Number  [read-only] [override]

Returns the minimum y value of the face


Implementation
    public function get minY():Number

See also

minZproperty 
minZ:Number  [read-only] [override]

Returns the minimum y value of the face


Implementation
    public function get minZ():Number

See also

radius2property 
radius2:Number  [read-only] [override]

Returns the squared bounding radius of the 3d sprite.


Implementation
    public function get radius2():Number
rotationproperty 
rotation:Number

Defines the rotation of the 3d sprite.


Implementation
    public function get rotation():Number
    public function set rotation(value:Number):void
scalingproperty 
scaling:Number

Defines the scaling of the 3d sprite when an BitmapMaterial is used.


Implementation
    public function get scaling():Number
    public function set scaling(value:Number):void
spriteVOproperty 
public var spriteVO:SpriteVO

widthproperty 
width:Number

Defines the width of the 3d sprite.


Implementation
    public function get width():Number
    public function set width(value:Number):void
xproperty 
x:Number

Defines the x coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.


Implementation
    public function get x():Number
    public function set x(value:Number):void
yproperty 
y:Number

Defines the y coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.


Implementation
    public function get y():Number
    public function set y(value:Number):void
zproperty 
z:Number

Defines the z coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.


Implementation
    public function get z():Number
    public function set z(value:Number):void
Constructor Detail
Sprite3D()Constructor
public function Sprite3D(material:Material = null, width:Number = 10, height:Number = 10, rotation:Number = 0, align:String = center, scaling:Number = 1, distanceScaling:Boolean = true)

Creates a new Billboard object.

Parameters
material:Material (default = null) — [optional] The material used by the 3d sprite to render
 
width:Number (default = 10)
 
height:Number (default = 10)
 
rotation:Number (default = 0)
 
align:String (default = center)
 
scaling:Number (default = 1)
 
distanceScaling:Boolean (default = true)
####INIT####
Event Detail
materialchanged Event
Event Object Type: away3d.events.BillboardEvent
BillboardEvent.type property = away3d.events.FaceEvent

Dispatched when the material of the sprite3d changes.