Solved

Changing the order of movieclips

Posted on 2003-11-11
3
203 Views
Last Modified: 2010-04-03
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
Comment
Question by:Cajones
  • 2
3 Comments
 
LVL 27

Accepted Solution

by:
negatyve earned 250 total points
ID: 9726645
on(release){
            movieclip1.swapDepths(movieclip2);
}

changes the depth order of the two movieclips
0
 
LVL 27

Expert Comment

by:negatyve
ID: 9726693
0
 
LVL 1

Author Comment

by:Cajones
ID: 9726741
excellent, you are my hero, thanks alot!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Sometimes you know that one object has a specific child in it, but you can't find the child. This happened to me when I was trying to code some actionScript to make a toolbar work with its embedded buttons.  My partner had created the toolbar usi…
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now