Solved

Changing the order of movieclips

Posted on 2003-11-11
3
206 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
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…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
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.

831 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