Fancy Divider (with source)

Written by Venkat on December 20, 2007 – 8:36 pm

I 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.

  1. moveTo
  2. lineTo
  3. curveTo
  4. drawCircle
  5. beginFill/beginGradientFill
  6. 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.

Posted under Flex Components |

2 Comments to “Fancy Divider (with source)”


  1. Adam Says:

    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.

  2. cool desi Says:

    Agreed, with your comments

Leave a Comment