A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: image buttons

  1. #1
    Junior Member
    Join Date
    Oct 2004
    Location
    Pasadena, California
    Posts
    2

    image buttons

    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
    Attached Files Attached Files

  2. #2
    Member Of Juniorness
    Join Date
    May 2004
    Posts
    28
    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:
    Code:
    on (mouseOver) {
    this._z.order = 0;
    }
    i'm not that good at actionscript, so dont berate me if it doesnt work!

  3. #3
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663
    Here's an simple and easy way with no scripting.
    5 frames, 6 <go to frame> commands.
    Last edited by gusmus; 10-18-2004 at 07:07 PM.
    humanus somes est divinitus in ipsum
    Wiliiam Wallace

  4. #4
    Junior Member
    Join Date
    Oct 2004
    Location
    Pasadena, California
    Posts
    2
    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.

  5. #5
    Can't Re- Member gusmus's Avatar
    Join Date
    Sep 2002
    Location
    España
    Posts
    663
    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.
    Last edited by gusmus; 10-18-2004 at 08:38 PM.
    humanus somes est divinitus in ipsum
    Wiliiam Wallace

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center