;

PDA

Click to See Complete Forum and Search --> : image buttons


Terak
10-17-2004, 08:21 PM
I have three tumbnails as image buttons in a row. On Mouseover of a button, I want the image to increase in size while retaining the same center as the thumbnail. How do I force the resized picture in *front* of the neighboring thumbnails?

At the moment it pops up *behind the other TNs

dig412
10-18-2004, 03:48 PM
you need to either supply the images with that file or replace them with shapes, as we cant see the images.

Anyway, i think that adding actionscript like:

on (mouseOver) {
this._z.order = 0;
}


i'm not that good at actionscript, so dont berate me if it doesnt work!;)

gusmus
10-18-2004, 08:02 PM
Here's an simple and easy way with no scripting.
5 frames, 6 <go to frame> commands.

Terak
10-18-2004, 09:17 PM
Thanks Dig412 and Gusmus,

On the tryimagebuttontest1.zip , I deleted the first keyframe and it still worked. What is the reason for having it there?

I am very new at flash, so apologies if this question has an obvious answer.

gusmus
10-18-2004, 09:30 PM
It is a bad idea to put any commands on the first frame of a flash movie. It will often ignore the first frame and unless you have a duplicate frame "frame 2" with the "stop" or any other commands in place then the movie is likely to run through the whole sequence of frames until it hits frame 1 again. It's good practice always to duplicate your first frame and always link any commands back to "frame2". By the way, you can dump the tweens (extra subframes) from between the main numbered frames on a menu like that,, they only take up space, I did it rather quickly and forgot to set the default "tweens" to 0.