Skip navigation
Currently Being Moderated

Problem with rollovers

May 9, 2013 5:04 AM

Tags: #as3 #mouse_over #mouse_out


I'm building an app in Flash cs6 in which I have several buttons that represent monuments on a map and some buttons are on top/beneath others. I've already made it so that any button being moused over jumps to front using addChild, but then when I go to the homepage, the buttons are still in front. How do I limit this action simply to the frame that the buttons are in or how do I make it so when I mouse out the button returns to its original state?

Answers are much appreciated.

  • kglad
    72,253 posts
    Jul 21, 2002
    Currently Being Moderated
    May 9, 2013 6:32 AM   in reply to argonnnnnnn

    use childIndex in your rollover to find the original depth (before using addChild) and reassign it using addChildAt in a rollout.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points