I made an square into a button and in the OVER state, added some extra pictures and text which I wanted displayed.
I put my mouse over the square and I see my desired effect. But when I put my mouse over the empty space where the mouseover images will appear, they pop up too!
Can someone tell me why this happens and how I can fix it?
Put all of your pics in an empty movie clip (Insert/Symbol).
Now, Position the clip where you want. Give the clip the instance name āimagesā. After you figure out where you want it, drag Frame 1 of your images clip so that it becomes frame 2.
Add a stop() action to Frame 1 (which is blank) and Frame 2 (which has the pics).
On the button, add these actionsā¦
on (rollOver) {
_root.images.gotoAndStop(2);
}
on (rollOut) {
_root.images.gotoAndStop(1);
}
That should work.
I would set up an example .fla file, but I use MX, so you wouldnāt be able to open it.
The problem is that she added images to the over state.
And even though these images donāt show, if you mouse over their location in the Over state, they will appear, even if you arenāt over the button. Because technically, these are part of the button
if you donāt put any kind of keyframe (like it is by default) into the HIT frame, it assumes the last keyframe played, or in this case the over state. If you make a separate hit state, then the images are still part of the button, just not part of the hit area.
Yupā¦ a button is still a 4 frame MC, so if you put something in frame 1, then donāt put anything in frames 2, 3, and 4, then in the movie it will look like frame 1 through all 4 frames ā¦ =)