Groups | Blog | Home
all groups > flash (macromedia) > september 2004 >

flash (macromedia) : NEED HELP ON Making a Mouse Roll Over!


Khronicle
9/29/2004 11:40:47 PM
i used to be a flash genius.. until a few months ago. i needa make a splash
page for someone... and they want the pic to start at like ALPHA 25% and
increase to 90% when mouseover. I forgot how to do this. Please Help.
Aspirin99
9/29/2004 11:54:55 PM
Assuming the pic is made into a movie clip called myPic.

_root.myPic.onLoad = function () {
_root.myPic._alpha=25;
}
_root.myPic.onRollOver = function () {
_root.myPic._xscale=190;
_root.myPic._yscale=190;
}


Aspirin99
9/29/2004 11:57:33 PM
Oh, and in case you want it to go back down.

_root.myPic.onRollOut = function () {
_root.myPic._xscale=100;
_root.myPic._yscale=100;
}
Khronicle
9/30/2004 2:29:21 AM
phatkow
9/30/2004 3:22:54 AM
i think he meant:

place your image in a movie clip symbol - give this MC the instance name
"myPic" (without the quotes).

then in the first frame of your move add these actions:

_root.myPic.onRollOver = function () {
_root.myPic._alpha=90;
}

_root.myPic.onRollOut = function () {
_root.myPic._alpha=25;
}

or you could just place the MC in a button and create a keyframe in the OVER
state and use the effects panel to adjust the alpha to "none".

either way the effect is the same. i attached a FLA.
AddThis Social Bookmark Button