flash help :(
Out of context: Reply #5
- Started
- Last post
- 9 Responses
- hiten0
Enter response:this is the code i have
//all this code is inside the complex button so you can stick as many as you want
//on the stage and all will work.. they all will have this code in it..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...
}this.onRelease = function(){
if (_root.currMovie == undefined) {
_root.currMovie = "movie";
container.loadMovie("movie.swf...
} else if (_root.currMovie != "movie") {
if (container._currentframe >= container.midframe) {
_root.currMovie = "movie";
container.play();
}
}
}the first part is to play and rewind the animation then the bottom is the swf loader.