I found this code that creates a smooth roll-in and roll-out of the menu. I'd like to be able to link the buttons within it to the main timeline, but coding the button objects themselves doesn't work, and neither does the other method of keeping the code all in one place.
I got some great help yesterday from NTD, but i've since changed my rollover method to this below, and cannot get the buttons within that movie clip to control the main timeline...
help!
stop(); // stop the movie clip from playing (stop button from growing, we want that when the mouse rolls over only
this.onEnterFrame = function(){
if(rewind == true){ //if rewind switch is set to true play backwards
prevFrame(); // play backwards
}
}
this.onRollOver = function(){
rewind = false; //set variable (or switch) that decides wether ot not to play backwards...
play(); // play this movie clip.. (grow the button(tween));
}
this.onRollOut = function(){
rewind = true; //set or rewind switch to true so it will play backwards...
}





Bookmarks