A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: animated buttons

  1. #1
    Junior Member
    Join Date
    May 2001
    Posts
    28

    Unhappy

    situation: i have a series of animated buttons on the same layer (each a different MC). When the user does a rollover and rollout the buttons enlarge and deenlarge.

    problem: when the rollover happens(enlarge) the other buttons can be seen on top of this button.

    question: is there a script i can use that will bring this button or animation to the front by simply doing a rollover?

    thank you for the help.

  2. #2
    Senior Member
    Join Date
    Dec 2000
    Posts
    515
    whether something is on top of something else has to do with "depth". You can not change the depth of a button, but you can change the depth of a movieclip. so you can put each button inside its own movieclip, then, on the button actions, in addition to whatever else you have, add:

    swapDepths(100);

    the 100 is just an example. basicly every object on the stage has a depth, starting at 0. higher numbers appear on top of lower numbers, so you want to give it a high enough number to be on top of everything else. don't worry about it being too high.

  3. #3
    Junior Member
    Join Date
    May 2001
    Posts
    28
    BINGO!! that did it!

    i'perciate the hell outta the help.

    again,

    thanks.

  4. #4
    Senior Member
    Join Date
    Dec 2000
    Posts
    515
    wow, that's the second time someone said "BINGO!" to my answers this week. glad i could help!

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