I haven't played with the gradient filter, but you can add filters to
display object's filters array in Moxie like this:

<?xml version="1.0"?>
<!-- l10n/FilterExample.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";> 
    <mx:Label id="l1" text="This is a label">
        <mx:filters>
            <mx:DropShadowFilter/>
        </mx:filters>
    </mx:Label>
</mx:Application>

The DisplayObject's reference page has more info on the filters array,
with examples, here: 

http://livedocs.adobe.com/labs/flex/3/langref/flash/display/DisplayObjec
t.html

Maybe this will help you get started.

-matt  

> -----Original Message-----
> From: [email protected] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Roy Tang
> Sent: Tuesday, September 11, 2007 10:57 PM
> To: [email protected]
> Subject: [flexcoders] Gradient filter?
> 
> Hi,
> 
> Is there a way to apply a gradient filter to a display 
> object? Something like the color transform filter, except I 
> would want the color to gradually transition from one end to 
> the other.
> 
> Any ideas?
> 
> Thanks!
> 
> Roy
> 
> 
>  
> 

Reply via email to