Groups | Blog | Home
all groups > flash actionscript > february 2004 >

flash actionscript : Graphics fading in and out


SubGum
2/4/2004 11:21:29 PM
What is the action scripting in Flash MX 2004 for images in a button fading in and out when the mouse is over the button. I'm making a menu for a project where you go over a button, and a picture fades in below, and want it to fadout once you leave with the mouse.

SubGum
2/5/2004 8:38:31 PM
bump

Valkyrie
2/5/2004 9:03:27 PM
you could change the image into a Graphic, and alter its _alpha property on rollover & rollout.

on (rollover) {
_root.graphic1._alpha = 99;
}

on (rollout) {
_root.graphic1._alpha = 0;
}

if you want them to tween in & out, make them into movieclips and play from labeled frames within the mc's.

on (rollover) {
_root.mc1.gotoAndPlay("in");
}

on (rollout) {
_root.mc1.gotoAndPlay("out");
}

AddThis Social Bookmark Button