Hi all,
Sorry for this long winded question to what i think will be a simple answer…
I am using this code i found on here to have a rollon rolloff effect for my menu
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...
}
and the tutorial from here for my site transitions between external swf’s
http://www.kirupa.com/developer/mx2004/transitions.htm
with slightly modified code for the buttons in the main timeline
btnAbout.onRelease = function() {
if (_root.currMovie == undefined) {
_root.currMovie = "about";
container.loadMovie("about.swf");
} else if (_root.currMovie != "about") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "about";
container.play();
}
}
}
I would like the btns to remain in their over state after they have been pressed, where would i need to add the goto and stop comand? In the btn or the main timeline.
Many thanks in advance
Greg