This is an awsome question. This type of optimization would have to function differently than the way the Flash IDE optimizes shapes, it would need to draw the graphics in its optimized state so there would need to be a whole new API that you would use in place of the drawing API.
There are 2 things that would need to be considered, maybe more but I right off the top of my head I can think of just curves and a set of 3 points or more that are parallel and have a line being drawn through all of them. The curves could done with the interpolation the curveTo function is capable of. Depending on the context, you might have to make optimizations for the applications of this newer API. I don't know of such a drawing tool for actionscript, but I will write this, I know it won't be ready for whatever project you're working on, so I should probably say that you probably shouldn't have 500 points drawing lines to each other. You should use low quality. If you tell me more about the context I can help you optimize it. M. On 4/13/06, Mick G <[EMAIL PROTECTED]> wrote: > > Does anyone know of any way to optimize a whole bunch of lineTo points? > Say > I have 500 points all fairly close that I'd like to reduce to fewer > points. > > I guess what I'm really after is an algorithm similar to the "Modify > > Shape > > Optimize" command in the Flash API. Has anyone seen what type of math > formula is used for this type of command that is quite common in most > drawing apps. > _______________________________________________ > [email protected] > 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 > _______________________________________________ [email protected] 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

