Packagefrocessing.shape
Classpublic class FShapeSVGLoader
InheritanceFShapeSVGLoader Inheritance FShapeSVG Inheritance FShapeContainer Inheritance AbstractFShape Inheritance CanvasStyleAdapter Inheritance Object
Implements IObjectLoader

Simple SVG Loader



Public Properties
 PropertyDefined By
 Inheritedcaps : String
stroke caps.
AbstractFShape
 Inheritedcommands : Array
[override] [read-only] get childs path commannds.
FShapeContainer
 Inheritedfill : ICanvasFill
fill stye object.
AbstractFShape
 InheritedfillAlpha : Number
fill alpha.
AbstractFShape
 InheritedfillColor : uint
fill color.
AbstractFShape
 InheritedfillEnabled : Boolean
fill style enabled.
AbstractFShape
 Inheritedheight : Number
[override] [read-only]
FShapeContainer
 Inheritedjoints : String
stroke joints.
AbstractFShape
 Inheritedleft : Number
[override] [read-only]
FShapeContainer
 Inheritedmatrix : Matrix
transform matrix( not clone ).
AbstractFShape
 InheritedmiterLimit : Number
stroke miterLimit.
AbstractFShape
 Inheritedname : String
shape object name(id).
AbstractFShape
 Inheritedparent : IFShapeContainer
parent shape container.
AbstractFShape
 InheritedpixelHinting : Boolean
stroke pixelHinting
AbstractFShape
 InheritedscaleMode : String
stroke scaleMode.
AbstractFShape
  status : int
[read-only] load status.
FShapeSVGLoader
 Inheritedstroke : ICanvasStroke
stroke style object.
AbstractFShape
 InheritedstrokeAlpha : Number
stroke alpha.
AbstractFShape
 InheritedstrokeColor : uint
stroke color.
AbstractFShape
 InheritedstrokeEnabled : Boolean
stroke style enabled.
AbstractFShape
 InheritedstyleEnabled : Boolean
[read-only]
AbstractFShape
  success : Boolean
[read-only] load completed.
FShapeSVGLoader
 Inheritedthickness : Number
stroke thickness.
AbstractFShape
 Inheritedtop : Number
[override] [read-only]
FShapeContainer
 InheriteduserData : Object
AbstractFShape
 Inheritedvertices : Array
[override] [read-only] get childs path data.
FShapeContainer
 Inheritedviewbox : FViewBox
FShapeContainer
 Inheritedvisible : Boolean
shape visible.
AbstractFShape
 Inheritedwidth : Number
[override] [read-only]
FShapeContainer
Public Methods
 MethodDefined By
  
FShapeSVGLoader(url:String, loader:URLLoader = null, callback:Function = null)
FShapeSVGLoader
 Inherited
add shape object to the container.
FShapeContainer
 Inherited
applyMatrix(mat:Matrix):void
apply matrix( prepend mat to current matrix ).
AbstractFShape
 Inherited
[override]
FShapeContainer
 Inherited
drawGraphics(gc:Graphics):void
[override] the container does not draw anything.
FShapeContainer
 Inherited
[override]
FShapeContainer
 Inherited
findChild(target:String):IFShape
find child by name.
FShapeContainer
 Inherited
findSVGRoot(doc:XML):XML
[static] get root SVG Element
FShapeSVG
 Inherited
getChild(target:String):IFShape
get child by name.
FShapeContainer
 Inherited
getChildAt(index:int):IFShape
get child by index.
FShapeContainer
 Inherited
get children number.
FShapeContainer
 Inherited
parseCircle(doc:XML, parent:FShapeContainer = null):FShapeCircle
[static] parse circle element.
FShapeSVG
 Inherited
parseColor(attr:String):uint
[static] parse color attribute.
FShapeSVG
 Inherited
parseDefs(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
[static] parse defs element.
FShapeSVG
 Inherited
[static] parse ellipse element.
FShapeSVG
 Inherited
parseGroup(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
[static] parse g element.
FShapeSVG
 Inherited
parseImage(doc:XML, parent:FShapeContainer = null):AbstractFShape
[static] parse image element.
FShapeSVG
 Inherited
parseLength(attr:String, defaultValue:Number = 0):Number
[static] parse "length" attribute.
FShapeSVG
 Inherited
parseLine(doc:XML, parent:FShapeContainer = null):FShapeLine
[static] parse line element.
FShapeSVG
 Inherited
[static] parse linearGradient element.
FShapeSVG
 Inherited
parsePath(doc:XML, parent:FShapeContainer = null):FShape
[static] parse path element.
FShapeSVG
 Inherited
parsePoints(points:String):Array
[static] parse list of points attribute.
FShapeSVG
 Inherited
parsePolygon(doc:XML, parent:FShapeContainer = null):FShape
[static] parse polygon element.
FShapeSVG
 Inherited
parsePolyline(doc:XML, parent:FShapeContainer = null):FShape
[static] parse polyline element.
FShapeSVG
 Inherited
[static] parse radialGradient element.
FShapeSVG
 Inherited
parseRect(doc:XML, parent:FShapeContainer = null):FShapeRect
[static] parse rect element.
FShapeSVG
 Inherited
parseSVG(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
[static] parse svg element.
FShapeSVG
 Inherited
parseSymbol(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
[static] parse symbol element.
FShapeSVG
 Inherited
[static] parse transform("transforms-list") attribute.
FShapeSVG
 Inherited
parseUse(doc:XML, parent:FShapeContainer = null, target:FShapeContainer = null):FShapeContainer
[static] parse use element.
FShapeSVG
 Inherited
remove shape object from the container.
FShapeContainer
 Inherited
reset transfrom.
AbstractFShape
 Inherited
rotate(angle:Number):void
rotate shape.
AbstractFShape
 Inherited
scale(x:Number, y:Number):void
scale shape.
AbstractFShape
 Inherited
toSprite():Sprite
[override] make Sprite instance including child shapes.
FShapeContainer
 Inherited
translate(x:Number, y:Number):void
translate shape.
AbstractFShape
 Inherited
update shape rectangle.( left, top, width, height )
AbstractFShape
Property Detail
statusproperty
status:int  [read-only]

load status. 0:loading, 1:complete, -1:error


Implementation
    public function get status():int
successproperty 
success:Boolean  [read-only]

load completed.


Implementation
    public function get success():Boolean
Constructor Detail
FShapeSVGLoader()Constructor
public function FShapeSVGLoader(url:String, loader:URLLoader = null, callback:Function = null)

Parameters
url:String
 
loader:URLLoader (default = null)
 
callback:Function (default = null) — callback on complete or error