It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming Flash Forum

setting depth of a movie clip

Moderator: Phate

setting depth of a movie clip

Postby anyonewannaspud on Wed Jan 30, 2008 4:34 am

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 :)
anyonewannaspud
 
Posts: 8
Joined: Mon Oct 01, 2007 5:05 pm

Postby tkgd2007 on Sun Feb 10, 2008 11:30 am

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!
tkgd2007
100+ Club
 
Posts: 103
Joined: Thu Nov 15, 2007 10:46 pm

Postby anyonewannaspud on Sun Mar 16, 2008 12:07 pm

cheers for the reply,

In the end I used:

on (release) {
this.swapDepths(this._parent.getNextHighestDepth());


gotoAndPlay(229);

}

cheers :)
anyonewannaspud
 
Posts: 8
Joined: Mon Oct 01, 2007 5:05 pm


Who is online

Users browsing this forum: No registered users and 0 guests