Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Duplicate Movie Clip

Status
Not open for further replies.

thirtyottsixx

Technical User
Aug 7, 2002
27
0
0
US
I'm having a problem with this file. dcunningham.addr.com/menu.zip
The buttons are contained in movie clips, and I need to make it so that one clip is on top of the other dependent on which one you click last. I believe duplicate movie clip is the way to do this, but I'm not sure exactly how to make it work.

Any help is appreciate in advance.
 
To get clips to appear on top of one another under your control you need to use swapDepths().

clip.swapDepths(1000);

...would bring a clip up to the front of the screen assuming that all the other clips on the stage had depths less than 1000.

Using duplicateMovieClip you can set the depth when you create the copy of the clip:

duplicateMovieClip('clip','newClip',1000)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top