I am somewhat new to Actionscript 3. I am building a svg export / import in flash and need to make the preview behave the same as svg. In flash, if a path overlaps, it is removed. How do I make it fill the entire area?
The paths are created with this:
object.graphics.moveTo(xpos[i], ypos[i]);
object.graphics.lineTo(px, py);
The result is 
This is caused by graphics path winding.
Defining winding rules
flash.diplay.GraphicsPathWinding
In Flash, the default winding rule is even odd.
For graphics produced using
drawPath, addGraphicsPathWinding.NON_ZEROwinding to your drawPath:For graphics drawn using convenience methods such as
lineTo(),drawCircle(), ordrawRect(), you couldbeginFill()andendFill()per shape drawn, as in:Instead of: