Lines in Flash 8 – Beware Miter
I finally got to take advantage of the improvements to the Drawing API in Flash 8. They are great. And (in theory) I will blog about different aspects of them soon. But, there is one thing to beware of… setting your lines to Miter. Miter lines draw a lot slower than other lines. Miter is very cool, in that it looks and behaves exactly like a line should – no more goofy rounded edge. But, if you’re doing work with lots of redraw, try to avoid it. (I was writing code for a pie chart where the arcs of the pie slices were being constantly updated by a user dragging a slider.) My tests show miter lines draw about 10x slower. I was hoping to post a nice demonstration example. But, I’m totally swamped.
lineStyle documentation here
Comments
One Response to “Lines in Flash 8 – Beware Miter”
Leave a Reply
Doug, you should definitely post these discoveries as a comment on the livedocs … and feel free to hide/delete this comment :-)
Best