It'll (probably) be faster to generate a bitmap at 400x400, using a 45
degree radient fill. Then simply scale that bitmap to 400x10. You'll only
need to do this once, then use a bitmap fill.

-Josh

On Wed, Sep 24, 2008 at 5:57 AM, Tim Hoff <[EMAIL PROTECTED]> wrote:

>
> Btw, either way that you do it, you're probably going to have to layer a
> gradient rectangle over another gradient rectangle; with the proper
> opacity.  The trick will be getting the colors to be what you want.
>
> -TH
>
> --- In [email protected], "Tim Hoff" <[EMAIL PROTECTED]> wrote:
> >
> >
> > Hey, if you can do it with the drawing API, cool. But, this is rather
> > easy to do in Fireworks or Photoshop. Just flatten your image and you
> > won't add that much size to the swf.
> >
> > -TH
> >
> > --- In [email protected], "tchredeemed" apthorp@ wrote:
> > >
> > > I was hoping you wouldnt say that! :)
> > >
> > > --- In [email protected], "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > You're probably better off just creating an image and using that
> as
> > the
> > > > skin for a container. Might be a bit tricky getting this to work
> > with a
> > > > programmatic skin.
> > > >
> > > > -TH
> > > >
> > > > --- In [email protected], "tchredeemed" <apthorp@> wrote:
> > > > >
> > > > > Heres the problem, I need to draw a gradient that goes from 0
> > opacity
> > > > > black to 100% opacity black from left to right.
> > > > >
> > > > > However, this also needs to fade out the further down you go.
> > > > >
> > > > > The gradient is 10 pixels wide, and about 400 pixels tall.
> > > > >
> > > > > So its essentially a horizontal gradient that fades as it goes
> > down...
> > > > >
> > > > > any ideas?
> > > > >
> > > >
> > >
> >
>
>
>
>
> ------------------------------------
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location:
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

http://flex.joshmcdonald.info/

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to