Hi,
Use a ProgramaticSkin subclass.

Then use the method drawCircle() to draw the circle based on the value of
getStyle("color"), which is your text color of the parent.

Pseudo;

override protected function updateDisplayList(w:Number, h:Number):void
{
    var color:unit = getStyle("color");
    var g:Graphics = graphics;

    g.clear();

    g.beginFill(color, 1)
    g.drawCircle(0, 0, w, h);
    g.endFill();
}


Mike

On Wed, Oct 22, 2008 at 12:00 AM, itdanny2002 <[EMAIL PROTECTED]> wrote:

>   Thank you but I wanna to draw the circle
> or checkmark instead of using symbol. I have
> tried to embed image files. It works. However,
> I wanna to use the color as same as text.
> Since the color of my application can be changed,
> I can't predict what color user used and I can
> prepare so many different colors icon. So, how to do
> if I want to draw my own icon ?
>
>  
>



-- 
Teoti Graphix, LLC
http://www.teotigraphix.com

Teoti Graphix Blog
http://www.blog.teotigraphix.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to