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 | 5 Comments »

5 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

  3. Eileen Says:

    This is great info to know.

  4. prakash Says:

    its not working in my application . it shows the following compilation error
    Error: Could not resolve to a component implementation.

    Can any body Give explanation for this.

    Thanks in advance
    Prakash

  5. prakash Says:

    sorry for the above it is not displaying the error cause tag.

    local:AdvancedCircleGradientBorder height=”100%” width=”35″ horizontalCenter=”0″ verticalCenter=”0″ target=”{leftList}” targetWidth=”120″

    Thanks in advance
    Prakash

Leave a Comment