> Hi! > > I would like to get all the coordinates from a shape made > with the Bezier tool in Flash or Illustrator into Flash so I > can use them to create a dynamic shape in Flash with the > curveTo syntax. Does anyone know if there is a tool or script > outthere doing this?
There's no way to do this completely accurately, because those shapes use cubic Bezier curves, while the curveTo function (and Flash's other drawing tools) use quadratics. However, you can make a first approximation version. In JSFL there is an edge.getControl() function which will tell you the position of the four control points of any contour edge. Loop through those for your shape, and you have the full data. To convert into quadratic beziers is fiddly, but you could make a first approximation by setting the quadratic control point to the average of the cubic one. HTH (I can give you more if you need it, but not right now...) Danny _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com