sketched
02-07-2002, 03:15 AM
This'll probably seem like a simple question to many, and in turn may reflect my simpleness, but hopefully that'll mean someone can help me out.
What I'm trying to do is create navigation buttons that use actionscript to fade in and out on mouseOver.
Right now I have them doing just that . . except all of the buttons fade when just one is mouseOver'd. I'm missing something, and I know it's probably quite easy . . but, hey, I'm (extremely) new.
Any help would be great. Thanks in advance!
da script i gots.....
ON MY MOVIECLIPS::::::::
onClipEvent (load) {
_root.about._alpha = 20;
col = new Color(_root.about);
_parent.targvals = myvals=col.getTransform();
speed = 5;
}
onClipEvent (enterFrame) {
fademe();
}
ON MY BUTTONS (on top of MCs)::::::
on (rollOver) {
targvals = {aa:90};
}
on (rollOut) {
targvals = {aa:20};
}
AND THE SCRIPT THEY REFER TO:
movieclip.prototype.fademe = function () { with (myvals) {aa += (_parent.targvals.aa-aa)/speed;}col.setTransform(myvals);};
What I'm trying to do is create navigation buttons that use actionscript to fade in and out on mouseOver.
Right now I have them doing just that . . except all of the buttons fade when just one is mouseOver'd. I'm missing something, and I know it's probably quite easy . . but, hey, I'm (extremely) new.
Any help would be great. Thanks in advance!
da script i gots.....
ON MY MOVIECLIPS::::::::
onClipEvent (load) {
_root.about._alpha = 20;
col = new Color(_root.about);
_parent.targvals = myvals=col.getTransform();
speed = 5;
}
onClipEvent (enterFrame) {
fademe();
}
ON MY BUTTONS (on top of MCs)::::::
on (rollOver) {
targvals = {aa:90};
}
on (rollOut) {
targvals = {aa:20};
}
AND THE SCRIPT THEY REFER TO:
movieclip.prototype.fademe = function () { with (myvals) {aa += (_parent.targvals.aa-aa)/speed;}col.setTransform(myvals);};