| View previous topic :: View next topic |
| Author |
Message |
anyonewannaspud
Joined: 01 Oct 2007 Posts: 8
|
Posted: Wed Jan 30, 2008 5:34 am Post subject: setting depth of a movie clip |
|
|
Hi,
I have several movie clips on different layers that load when different buttons are pressed. the only thing is when the clip on the top layer is loaded any clips below it load on a lower depth and therefore can't be seen.
i know there is a way to trace the depth and then set the movie clip to the next highest depth? (the instance name in this case is 'linkmovie' but i haven't a clue what it is or where i would write it!
any help is greatly appreciated  |
|
| Back to top |
|
 |
|
|
tkgd2007 50+ Club
Joined: 15 Nov 2007 Posts: 95
|
Posted: Sun Feb 10, 2008 12:30 pm Post subject: Re: setting depth of a movie clip |
|
|
mx.behaviors.DepthControl.bringToFront(linkmovie);
Works well, but probably not the most correct method, as it has possibly been depreciated.
EDIT: I found the other piece of code I was looking for in my files... this also works...
linkmovie.setDepthTo(DepthManager.kTopmost);
cheers! |
|
| Back to top |
|
 |
anyonewannaspud
Joined: 01 Oct 2007 Posts: 8
|
Posted: Sun Mar 16, 2008 1:07 pm Post subject: Re: setting depth of a movie clip |
|
|
cheers for the reply,
In the end I used:
on (release) {
this.swapDepths(this._parent.getNextHighestDepth());
gotoAndPlay(229);
}
cheers  |
|
| Back to top |
|
 |
|