Fancy Divider (with source)
Written by Venkat on December 20, 2007 – 8:36 pmI am finally back with the source for the divider component. Take a look at it before you read any further.
The divider illustrates a couple of basic drawing concepts using the graphics class. It uses the following drawing methods.
- moveTo
- lineTo
- curveTo
- drawCircle
- beginFill/beginGradientFill
- drawRect/drawRoundedRect
Read the source if you want to know how to use these methods. I have included comments in the source where appropriate. Please leave a comment if you like it or have any suggestions/questions.
Subscribe to my blog using RSS
December 21st, 2007 at 8:53 pm
That’s awesome. I was thinking of doing this in our latest Flex app and then realized that it would take a bit of work to get it done. The only addition would be a few listeners for our application - so thanks. You’ve saved me some time, and your code is well documented.
December 22nd, 2007 at 6:24 pm
Agreed, with your comments