Ah, you're using the primitive graphics API, not the
mx.graphics.LinearGradient class. Good, that's probably the right way to
go.
A couple of questions for you:
1) Have you tried writing a simpler version that just uses
a solid color? That might make show you whether the problem is with the
gradient code, or rendering in particular.
2) when flex containers show borders, they're actually
creating a border object and adding it as a child. In flash, the graphics
of a Displayobject get rendered behind the children of the display object. Which
means if your component is showing a border or background ( i.e., a
background as rendererd by the base class), it will obscure any drawing you do
in the component itself.
3) often, when people are writing custom components, they
reasonably assume that Canvas is the right starting point, when really they
should be using UIComponent as their base class. What kind of a component
are you writing? Are you just creating a Canvas with better background
capabilities? Or are you creating something else? If it's something else,
what's your reasoning for using Canvas as the base?
Ely.
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cristian Pop Sent: Thursday, November 02, 2006 10:40 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: LinearGradient outside charts Thanks Ely, -- 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
Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___ |
- [flexcoders] Re: LinearGradient outside charts Cristian Pop
- RE: [flexcoders] Re: LinearGradient outside charts Ely Greenfield
- RE: [flexcoders] Re: LinearGradient outside charts Brian Deitte
- [flexcoders] Re: LinearGradient outside charts Cristian Pop
- RE: [flexcoders] Re: LinearGradient outside charts Dirk Eismann
- RE: [flexcoders] Re: LinearGradient outside charts Dirk Eismann
- [flexcoders] Re: LinearGradient outside charts Cristian Pop