A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: Big Button --> Little Button

  1. #1

    Big Button --> Little Button

    Ok I'll just use a box for this example. Lets just say i have a box that i'm using for a button. When the person rolls over it, it does a motion or shape tween into a larger box...that's no problem for me..what i want it to do is when they roll OFF it, for it to shrink back into the smaller box it originally was. can anyone help?? Thanks

  2. #2
    Senior Member
    Join Date
    May 2000
    Location
    Roermond, The Netherlands
    Posts
    198

    Use a MC

    Hi,

    If you want this effect you should use a transparent button which controls a MC. The MC contains the animation of the button.

    See attached file:
    Attached Files Attached Files
    -- Matrix
    -- The Netherlands



    Click here to email me

  3. #3
    I recieved an unexpected file format in that .fla you had for a d/l

  4. #4
    Senior Member
    Join Date
    May 2000
    Location
    Roermond, The Netherlands
    Posts
    198

    Flash 5.....?

    Maybe you're using FLash 5....

    So here's the fla in Flash 5:
    Attached Files Attached Files
    -- Matrix
    -- The Netherlands



    Click here to email me

  5. #5
    Works great. It's exactly what i was looking for. Thank you i really appreciate that!

  6. #6
    I thought i could read what is going on in those codes but my flash skills are obviously going down. In the button's actions, you have

    on (rollOver) {
    testbutton.gotoAndPlay(2);
    }

    Is testbutton a label or what? i'm a little confused about that.

  7. #7
    Senior Member
    Join Date
    May 2000
    Location
    Roermond, The Netherlands
    Posts
    198
    testbutton is the instance name of the movievlip you control with the button. Here's a screenshot of where you can find the name of the MC.

    This is not the library-name of the MC.. This is the name of the MC on the stage, or the "intance name".
    Attached Images Attached Images
    -- Matrix
    -- The Netherlands



    Click here to email me

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