Flash's Drawing API only supports linear (or radial) gradients, to get '2D' or 'tweened' gradients we have to programmatically 'concatenate' 1-pixel wide gradient-stripes. My GradientTween class does just this. Use this visual Editor to generate the necessary code: http://www.motiondraw.com/md/as_samples/t/gradientTween/gradientTweenEditor. html
HTH -------------- Andreas Weber motiondraw.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Claudia Barnal Sent: Friday, November 18, 2005 3:15 PM To: flashcoders@chattyfig.figleaf.com Subject: [Flashcoders] Drawing gradients Hi guys. I have tried to create a four colored gradient through AS, but I am not really getting any results. One example can be found here: http://www.fnordware.com/superpng/samples.html Im not really sure what the name of these type of gradients are, but they are usually found in color selectors in graphics tools i.e. Photoshop. And have four colors equally bended from each corner. Could you give me a hint on how I could achieve this kind of help? TIA Claudia _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders