Shape |
ShapeSVG |
Shape object used in SVG import.
| ShapeSVG | Shape object used in SVG import. |
| Public properties | |
| p | Start point of shape |
| pts | Array of objects with p Points and optional c control Points |
| fill | Shape fill (default white fill) |
| stroke | Shape line style (default black stroke) |
| Shape object methods | |
| ShapeSVG | ShapeSVG object Constructor. |
| generateCode | Generates and returns AS3 code corresponding to the shape object. |
| round2 | Rounds a numeric value to at most 2 digits after the decimal point. |
public function ShapeSVG( shapeName: String, shapeP: Point, shapePts: Array, shapeRotation: int, shapeFill: Object, shapeStroke: Object ):void
ShapeSVG object Constructor.
| shapeName | name of the shape |
| shapeP | start point of shape (with .x and .y properties) |
| shapePts | array of objects, each element of which defines one segment (curve or line) of the whole shapeDef object where p is the point to be drawn to and c is the quadratic bezier control point for the segment (null if a line) |
| shapeRotation | rotation of the shape |
| shapeFill | fill of the shape |
| shapeStroke | line style of the stroke |
Start point of shape
public var p: Point
Array of objects with p Points and optional c control Points
public var pts: Array
Shape fill (default white fill)
public var fill: Object
Shape line style (default black stroke)
public var stroke: Object
ShapeSVG object Constructor.
public function ShapeSVG( shapeName: String, shapeP: Point, shapePts: Array, shapeRotation: int, shapeFill: Object, shapeStroke: Object ):void
Generates and returns AS3 code corresponding to the shape object.
public function generateCode():String
Rounds a numeric value to at most 2 digits after the decimal point.
private function round2( value: Number ):String