I'd like to extend the functionality of lineStyle to allow for a shape option.
Drawing with the lineTo commands is ok, but that creates a circle by
default, which leaves the only option of using drawRect and
drawEllipse as methods for other strokes. This doesnt work too hot,
if you run this
The Graphics class is a native class (i.e., one implemented in C++, not
in AS3) in the Flash Player.
What do you mean that lineTo() commands create a circle by default?
- Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick
Ah, so even if you were to release the code, everyone would need my version
of the flash player to get that effect I created?
By circle I mean the rounded edge of the lineStyle creates. If you change
line 17 (becomes more obvious with bigger sizes) in my example to something
like
Extending the functionality of the graphics object is generally done
creating a wrapper class that is passed the graphics object and then
operates on it. There's an example for this out there that draws dotted
lines. I'll see if I can find it.
- Dan
On 07 Mar 2007 11:49:56 -0800, Rick
Wishlist?
Yep. - Gordon
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Rick Schmitty
Sent: Wednesday, March 07, 2007 11:48 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Is the Graphics class available in the SDK
anywhere?
Submitted to wishlist, thanks for your help Gordon.
Dan, I think you are thinking of this example by Ely:
http://www.quietlyscheming.com/blog/charts/dashed-lines/
While very very cool, it still uses lines and the line function, which is
the root of what I'm trying to behave different
On 07
6 matches
Mail list logo