how do you do rollovers llike
how do you do rollovers llike
Out of context: Reply #4
- Started
- Last post
- 72 Responses
- kpl0
if you're talking about the fade out when you roll out of a button:
put an invisible button over a movie clip.
movie clip consists of one frame, #000000 black square
button script:
on (rollOver) {
movieclip.hold = 1;
}on (rollOut) {
movieclip.gold = 0;
}movie clip script:
onClipEvent (enterFrame) {
if (hold) {
this._alpha = 20;
} else if (this._alpha < 80) {
this._alpha -= 1;
}}
movie clip is named "movieclip" of course. let me know if this script makes no sense.