• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 212
  • Last Modified:

Changing the order of movieclips

Ok, i have this movieclip which is behind another movieclip, and i want to be able to dynamically change the order of the clips, like be able to move one clip in front of the other, then put the other one back on top.. any ideas how do to do that dynamically in actionscript? (and i mean dynamically, like with a button, or on an event)
thanks, cajonees
0
Cajones
Asked:
Cajones
  • 2
1 Solution
 
negatyveCommented:
on(release){
            movieclip1.swapDepths(movieclip2);
}

changes the depth order of the two movieclips
0
 
negatyveCommented:
0
 
CajonesAuthor Commented:
excellent, you are my hero, thanks alot!
0

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now