Packageaway3d.sprites
Classpublic class MovieClipSprite
InheritanceMovieClipSprite Inheritance Sprite3D Inheritance Element Inheritance flash.events.EventDispatcher

Spherical billboard (always facing the camera) sprite object that uses a movieclip as it's texture. Draws individual display objects inline with z-sorted triangles in a scene.



Public Properties
 PropertyDefined By
 Inheritedalign : 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
 InheriteddistanceScaling : Boolean
Defines if the sprite should scale with distance.
Sprite3D
 Inheritedextra : Object
An optional untyped object that can contain used-defined properties.
Element
 Inheritedheight : Number
Defines the height of the 3d sprite.
Sprite3D
 Inheritedmaterial : Material
Defines the material of the 3d sprite.
Sprite3D
 InheritedmaxX : Number
[override] [read-only] Returns the maximum x value of the segment
Sprite3D
 InheritedmaxY : Number
[override] [read-only] Returns the maximum y value of the segment
Sprite3D
 InheritedmaxZ : Number
[override] [read-only] Returns the maximum z value of the segment
Sprite3D
 InheritedminX : Number
[override] [read-only] Returns the minimum x value of the face
Sprite3D
 InheritedminY : Number
[override] [read-only] Returns the minimum y value of the face
Sprite3D
 InheritedminZ : Number
[override] [read-only] Returns the minimum y value of the face
Sprite3D
  movieClip : DisplayObject
Defines the display object to use for the sprite.
MovieClipSprite
 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
 Inheritedradius2 : Number
[override] [read-only] Returns the squared bounding radius of the 3d sprite.
Sprite3D
 Inheritedrotation : Number
Defines the rotation of the 3d sprite.
Sprite3D
 Inheritedscaling : Number
Defines the scaling of the 3d sprite when an BitmapMaterial is used.
Sprite3D
 InheritedspriteVO : 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
 Inheritedwidth : Number
Defines the width of the 3d sprite.
Sprite3D
 Inheritedx : Number
Defines the x coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.
Sprite3D
 Inheritedy : Number
Defines the y coordinate of the 3d sprite relative to the local coordinates of the parent Mesh.
Sprite3D
 Inheritedz : 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
  
MovieClipSprite(movieClip:DisplayObject, align:String = center, scaling:Number = 1, distanceScaling:Boolean = true)
Creates a new MovieClipSprite object.
MovieClipSprite
 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
 InheritedDispatched 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
movieClipproperty
movieClip:DisplayObject

Defines the display object to use for the sprite.


Implementation
    public function get movieClip():DisplayObject
    public function set movieClip(value:DisplayObject):void
Constructor Detail
MovieClipSprite()Constructor
public function MovieClipSprite(movieClip:DisplayObject, align:String = center, scaling:Number = 1, distanceScaling:Boolean = true)

Creates a new MovieClipSprite object.

Parameters
movieClip:DisplayObject — The displayobject to use as the sprite texture.
 
align:String (default = center) — [optional] An initialisation object for specifying default instance properties.
 
scaling:Number (default = 1)
 
distanceScaling:Boolean (default = true)
####INIT####