PDA

View Full Version : transparent gradient


face2six
06-20-2002, 07:31 PM
YES I did a search and figured out how to edit a fill color to make gradient to transparency. NO easy feat in flash 5.....I hope it gets better in MX :b

MY problem is that Im am making a mask that fades to transparent from white. When I do this I get a ugly grey tone where the gradient takes place. Is this common for all transparent gradients or does it only happen with white. As well does anyone know a better way?

graci

poab
06-21-2002, 11:51 AM
Hi,

Use a scripted tween to change the _alpha property of the gradient (You'll need to put it in a MC) rather than hand-tweening it.

There's hundreds of posts here on scripted tweens. They usually refer to _x coordinates, but just replace _x with _alpha.

cheers.

face2six
06-21-2002, 03:40 PM
spiralling into confusion....

you mean to tell me there is a way to make a mask ( white in this case) and have one side of it opaque ( white) and the other side fade to transparent by some esoteric scripting voodoo?

or

did you miss my point and explain the tweening process of taking an entire opaque mask and tweening the entire thing to a transparent mask ( alpha 0) ?

yes I know how to do the latter. What I need is a GRADIENT that gradiates (not tweens/fades) from white to transparent without an ugly grey tone where the gradient takes place. Has anyone seen this type of thing before?

If anyone can help here it would be greatly appreciated

poab
06-21-2002, 04:06 PM
Oh, right -sorry,

So you want a gradient, one side of which is 0% opaque and the other side of which is 100% white?

If you're getting a grey tone it's possibly because you've got one side of the gradient 100% white and one side 0% black (which would be the default) resulting in a center that is 50% opaque and 50% grey. - Make both side white first and then reduce the _alpha on one side.

I don't really see where masks come into it, unless you're referring to photoshop style masks. As far as I'm aware gradients don't work as masks in flash 5.

cheers.

overjoyed
06-21-2002, 04:17 PM
I've had the same problem in the past. I figured out through a
series of trial and error that even though I set the one color in my
gradient to 0 alpha, that the color I turned transparent tints the
gradient. (i.e. If I make a gradient that goes from white to black
and then make the black transparent, it makes an ugly gray tint
in the middle; just as you are experiencing.)

Make a gradient that goes from white to white and then
adjust your alpha settings. Or, if you're still not satisfied with
that, make a gradient that goes from white to the color your
gradient will cover (or a rough approximation), and then adjust
the alpha accordingly.

Hope this helps.

::/ overjoyed /::