The Graphic3d class is a template for an object that contains both 3d coordinates and graphics. A Graphic3d object is not itself a MovieClip. It is a code object, which can attach and manipulate a MovieClip by reference.
ActionScript 2.0; Flash Player 6
Property summary
Property | Description |
---|---|
position:Vector3d |
The graphic's 3d location. |
scale:Number |
The graphic's scale. |
Method summary
Method | Description |
---|---|
render() : Void |
Updates the graphic's visual representation to match its current status. |
var pointA:Graphic3d = new Graphic3d(50, -30, 20, this, "dot", 1);
x:Number
- The x value of the graphic.
y:Number
- The y value of the graphic.
z:Number
- The z value of the graphic.
timeline:MovieClip
- A reference to the MovieClip that contains this particular Graphic3d object.
mcID:String
- The linkage name of the MovieClip symbol in the library to attach as the graphic.
depth:Number
- An integer specifying the depth level where the graphic is placed.
Creates an instance of the Graphic3d class.
var pointA:Graphic3d = new Graphic3d(50, -30, 20, this, "dot", 1);
pointA.position.rotateX(5);
pointA.render();
Nothing.
Updates the graphic's visual representation to match its current status.
var pointA:Graphic3d = new Graphic3d(50, -30, 20, this, "dot", 1);
pointA.position.rotateX(5);
The graphic's 3d location.
trace (pointA.scale);
The graphic's scale.