Having just layed it out manually, doing this gets the result you want: - Create a grey filled square (RGBA 128,128,128,255) - Overlay that with a square with gradient from top-right to bottom left RGBA 255,0,0,255 -> RGBA 255,0,0,0 -> RGBA 255,0,0,0 (i.e. with the alpha set to 0 at the _mid-point_) - Do the same with a gradient from bottom-left to top-right RGBA 0,255,255,255 -> 0,255,255,0 -> 0,255,255,0 -> top-left to bottom-right RGBA 0,0,255,255 -> 0,0,255,0 -> 0,0,255,0 -> bottom-right to top-left RGBA 255,255,0,255 -> 255,255,0,0 -> 255,255,0,0
That pretty much duplicates the example you posted. To get all that in ActionScript, look up MovieClip.beginGradientFill() in the docs - combine it with moveTo() and lineTo() and it should all be fairly easy. HTH, Ian On 11/18/05, Ian Thomas <[EMAIL PROTECTED]> wrote: > > Haven't tried it - but how about drawing 4 boxes on top of each other, > each one with a gradient going from full colour (in the corner - alpha 255) > to fully transparent (alpha 0) in the opposite corner? > > You never know, it might work. :-) > > Ian > > On 11/18/05, Claudia Barnal <[EMAIL PROTECTED]> wrote: > > > > 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 > > > > I'm 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 > > > > _________________________________________________________________ > > MSN Messenger 7.5 is now out. Download it for FREE here. > > http://messenger.msn.co.uk > > > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders