I am trying to export to svg myself, and I find it a little surprising that it is so difficult to find an svg exporter, as it is pretty much just xml.
I came across xgraphics , although this may be useful.
in fact, you only need the SVG class. It tries to simulate a graphic class in as3, but I found that I need to add a draw polygons class.
public function drawPolygon($points:Array):void { var $pointsString:String = ""; for each (var $pt:Point in $points) { $pointsString += (" " + $pt.x +"," + $pt.y); } var xml:XML = new XML('<polygon points="' + $pointsString + '" fill="' + uintToCSS2Color(fillColor) + '" stroke="' + uintToCSS2Color(lineColor) + '" stroke-width="' + strokeWidth + '"/>'); this.xml.appendChild(xml); }
this allows me to create triangles and other shapes by passing an array of points
source share