all groups > flash actionscript > november 2004 >
You're in the

flash actionscript

group:

fading buttons


fading buttons neddyoats
11/30/2004 8:58:37 PM
flash actionscript:
my code is like this
on (rollOver) {
tellTarget("MCcarl") {
gotoAndPlay (2);
}
}
on (rollOut) {
tellTarget("MCcarl") {
gotoAndPlay (11);
}
}

- navbar on www.imaginationbrewery.com
Re: fading buttons DazFaz
12/1/2004 1:49:42 PM
Hi, I dont think ur going to achieve this effect with tweening to get the
smooth transition u want but I have come up with this that might help. 1.
Create a movieClip with an image in it. 2. Apply the following code to the
movieClip: onClipEvent (load) { counter = 10; this._alpha = counter; }
onClipEvent (enterFrame) { if (hitTest(_root._xmouse, _root._ymouse,
true)&amp;&amp;counter<101) { counter++; this._alpha = counter; } else if
(this._alpha>10) { counter--; this._alpha = counter; } } This creates
the effect ur looking for, I hope ot helps.
AddThis Social Bookmark Button