Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Actionscript onDrag Bringtofront (movieclip)?

how do I bring a movieclip to front using actionscript. When I start dragging some of my movieclips go behind others which doesnt look good in the game i am making. How would I bring the movieclip I am dragging to the front so they are over the rest.

P.S: All of the draggable movie clips for this part are in the same layer.

1 Answer

Relevance
  • 1 decade ago
    Favorite Answer

    Remember that the index is determined by the order you create the objects. Also you can change the index by using setChildIndex function

Still have questions? Get your answers by asking now.