Package | away3d.sprites |
Class | public class MovieClipSprite |
Inheritance | MovieClipSprite Sprite3D Element flash.events.EventDispatcher |
Property | Defined by | ||
---|---|---|---|
align : String
Defines how the 3d sprite is aligned to its vertex
| Sprite3D | ||
commands : Array
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 | ||
extra : 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
Returns the maximum x value of the segment
| Sprite3D | ||
maxY : Number
Returns the maximum y value of the segment
| Sprite3D | ||
maxZ : Number
Returns the maximum z value of the segment
| Sprite3D | ||
minX : Number
Returns the minimum x value of the face
| Sprite3D | ||
minY : Number
Returns the minimum y value of the face
| Sprite3D | ||
minZ : Number
Returns the minimum y value of the face
| Sprite3D | ||
movieClip : DisplayObject
Defines the display object to use for the sprite.
| MovieClipSprite | ||
parent : Geometry
Defines the parent 3d object of the segment.
| Element | ||
pathCommands : Array
Returns an array of drawing command objects that are used by the face.
| Element | ||
radius2 : Number
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 | ||
vertexDirty : Boolean | Element | ||
vertices : Array
Returns an array of vertex objects that make up the 3d element.
| Element | ||
visible : 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 |
Method | Defined by | ||
---|---|---|---|
MovieClipSprite
(movieClip:DisplayObject, align:String = "center", scaling:Number = 1, distanceScaling:Boolean = true)
Creates a new
MovieClipSprite object. | MovieClipSprite | ||
addOnMappingChange(listener:Function):void
Default method for adding a mappingchanged event listener
| Element | ||
addOnVertexChange(listener:Function):void
Default method for adding a vertexchanged event listener
| Element | ||
addOnVertexValueChange(listener:Function):void
Default method for adding a vertexvaluechanged event listener
| Element | ||
addOnVisibleChange(listener:Function):void
Default method for adding a visiblechanged event listener
| Element | ||
offset(x:Number, y:Number, z:Number):void
Offsets the vertices of the face by given amounts in x, y and z.
| Element | ||
removeOnMappingChange(listener:Function):void
Default method for removing a mappingchanged event listener
| Element | ||
removeOnVertexChange(listener:Function):void
Default method for removing a vertexchanged event listener
| Element | ||
removeOnVertexValueChange(listener:Function):void
Default method for removing a vertexvaluechanged event listener
| Element | ||
removeOnVisibleChange(listener:Function):void
Default method for removing a visiblechanged event listener
| Element |
movieClip | property |
movieClip:DisplayObject
[read-write]Defines the display object to use for the sprite.
Implementation public function get movieClip():DisplayObject
public function set movieClip(value:DisplayObject):void
MovieClipSprite | () | constructor |
public function MovieClipSprite(movieClip:DisplayObject, align:String = "center", scaling:Number = 1, distanceScaling:Boolean = true)
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 )
|