|
-
Movie Clip Button Question
i have a menu with 5 different movie clips that i gave button functionality too.
when you move over each button, there _xscale and _yscale values = 125 (so they grow bigger). when you move off of the they go back to their orignal size.
my question is, how would i give them a hit state where they would stay at 125% until another button is hit then return to it's normal size? i would like to get this working so the visiter will know which section is currently selected.
here is some example code i got working:
on (rollOver, dragOver) {
varOver= 1;
}
on (rollOut, dragOut) {
varOver= 0;
this.gotoAndPlay("_Out");
}
onClipEvent (load){
varOver=9;
}
onClipEvent (enterFrame){
if (varOver==1){
_xscale=_xscale+(125-_xscale)/2;
_yscale=_yscale+(125-_yscale)/2;
}
if (varOver==0){
_xscale=_xscale+(100-_yscale)/6;
_yscale=_yscale+(100-_yscale)/6;
}
}
Last edited by addamtron; 01-07-2004 at 02:27 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|