PDA

View Full Version : image transparency


bd.n
03-09-2002, 04:21 AM
here is what i need.
i have 2 images and 2 layers. in layer 2 (the top layer) i have a blurred image. in layer 1 (the bottom layer) i have the same image but not blurred. how can i have the blurred image fade away as the mouse gets closer to the image, and have it fade in as the mouse gets farther away? basically what im asking is how can i change the opacity of an image in flash. thanks.

zoomfreddy
03-09-2002, 05:13 AM
hi there, check my site, there is an example, and a downloadable Fla to do stuff like that.
:cool:

bd.n
03-09-2002, 05:20 AM
thanks a bunch man!

farafiro
03-10-2002, 12:34 PM
U just simply linkage your image with the mouse position like

this._alpha = _xmouse
or _ymouse or both

so, as far as the pointer moves to the right from the 0,0 cordinates the MC's alpha will rise up.
U can adjust this by substracting a value u want from the _xmouse

this._alpha = _xmouse -50
this will give an alpha = 100 when the _xmouse = 150

and so on

bd.n
03-11-2002, 12:07 AM
sweet. perfect. thanks.