Hi,

some time ago I've played a bit with creating components in AS and
I've extended the canvas to allow gradient using fillColors. 
Back then I did not implement more than 2 colors.
In the meantime I've noticed the LinearGradient class and I thought
that I could use it to pass easier the parameters required by a
gradient. angle, fill colors, alphas and ratios.

So I've triend to extend the Canvas adding a fill property (IFill) and
then in updateDisplayList to use the begin method of the Linear
Gradient to fill the graphics of the Canvas.

I'm not sure what I'm doing wrong but it's not working. If anyone
knows how LinearGradient works and it can be used outside the scope
shown in the documentation please let me know.

I will try to post the code later.

Thanks,

Cristian Pop




--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to