You were right, i did not set the line style.

Thanks!

--- In [email protected], Mark Wales <[EMAIL PROTECTED]> wrote:
>
> Not sure which version you are using, but in Flex 2 Beta 2, I also have
> a component that extends the UIComponent.
>
> When you say you are using the drawing API, I presume you are doing
> something like this:
>
> this.graphics.clear();
> this.graphics.beginFill(0xff0000);
> this.graphics.drawRect(-25, -25, 50, 50);
>
> One thought is that you may not be setting the line color or line
width.
> Is that a possibility? Make sure you have something equivalent to this:
>
> c.graphics.lineStyle(1, 0xff0000);
>
> -Mark
>
> leo4beer wrote:
>
> >Using the drawing API inside a component.
> >
> >Hi, I've made a custom component by extending the UIComponent class,
> >in my component I've overridden the draw() method and used drawing API
> >to draw a few lines.
> >I've embedded my component in an MXML page but I don't see the linesÂ…I
> >must be doing something wrong, any ideas?
> >
> >Thanks in advance,
> >
> >Leo.
> >
> >
> >
> >
> >
> >
> >
> >--
> >Flexcoders Mailing List
> >FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> >Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> >Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > 
> >
>






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to