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
October 28th, 2008 at 6:27 pm
This is great info to know.
September 2nd, 2009 at 8:24 am
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
September 2nd, 2009 at 8:26 am
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