Complicating the Compex Button - Help Please?

I’ve been asked to complicate the complex button tutorial that I found on the site here. I am not even close to a programmer. I play… so I hope you can help a girl out!

What I need to do is make the movie clip play to the end before it rewinds onRollOut while keeping the clip large and in position while the mouse is on it.

Here’s what I started with (including a stop in the last frame of the MC):


stop();

this.onEnterFrame = function(){
    if(rewind == true){
        prevFrame();
    }
}

this.onRollOver = function(){
    rewind = false;
    play(); 
}

this.onRollOut = function(){
    rewind = true;
}

this.onRelease = function(){
    getURL("http://www.website.com","_blank");
}

So I altered the script to try and play it completely. Here’s where I’m at. Still with a hiccup.

I have a 10 frame MC animation of a button.

Frame 1 starts normal. Frame 5 is big. Frame 10 is back to normal. Tweening occurs between 1, 5, 10.

Frame 1 actionscript:


stop();

this.onRollOver = function(){
    play(); 
}

this.onRelease = function(){
    getURL("http://www.website.com","_blank");
}

Frame 5 actionscript:


stop();

this.onRollOut = function(){
    play();
}

this.onRelease = function(){
    getURL("http://www.website.com","_blank");
}

Frame 10 actionscript:


gotoAndPlay (1);

this.onRelease = function(){
    getURL("http://www.website.com","_blank");
}

The problem with this is that if I RollOut before the animation gets to 5 (where the RollOut command is) then it only hits the Stop.

Should I Go back and change the original script or alter further what I have? Again, I am so not good at this stuff. I hope someone can help me. Thank you!!

-Kim Fenolio