Sprite Glitch/rollOver Sticking

That’s because the rolldown text and the image is part of the same movie which you have turned into a rollover, so the text counts as mouse-accessible area.

Remove the actionscript from the movieclips, but keep the text animation there. Each image+text should exist as its own movie clip, as it does now. Give each one a different instance name. (ex. Animation1, Animation2, etc.)

Create five new buttons on a new layer above the images, and simply make them boxes that cover the area you want to be moused-over. It doesn’t matter what color they are, but make their transparency 0% so they are hidden.

Next, convert each one of these boxes (separately) to a movieclip. We’re going to turn it into a button with actionscript, but do not set its type to “button.”

On the main timeline, click on the first box, and in the actionscript for that movieclip (not the frame’s actionscript), do something like this:

on(rollOver) { _root.animation1.gotoAndPlay(2); }
on(rollOut) { _root.animation1.gotoAndPlay(11); }

_root refers to the main timeline. animation1 should be the name of the instance you want to reference. This will create the animation within the movie clip you’re referencing, but not the button that the script exists on. This way, you can have the button area be only over the image, and not the entire text+image movieclip.

Set up the animation in your text+image movieclips to have a stop(); on the first frame, so that it’s hidden, and a stop on the frame where it’s fully rolled-in. Then a gotoAndStop(1); on the final frame, to be sure that it automatically goes back to the start and stays hidden. Your roll-in script will tell it to start animating in, and then it will stop after it’s fully rolled-in. Your roll-out script will tell it to start playing one frame after it stopped in the middle, and roll it out again.

This is somewhat dirty script, and you could have if statements that check what frame it’s on, and based upon that, roll in or out cleanly and whatnot, but this should get you started. Hopefully I was clear enough in my explanation. :slight_smile: