Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


setting depth of a movie clip



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Flash Forum
View previous topic :: View next topic  
Author Message
anyonewannaspud



Joined: 01 Oct 2007
Posts: 8

PostPosted: Wed Jan 30, 2008 5:34 am    Post subject: setting depth of a movie clip Reply with quote

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 Smile
Back to top
View user's profile Send private message
tkgd2007
50+ Club


Joined: 15 Nov 2007
Posts: 95

PostPosted: Sun Feb 10, 2008 12:30 pm    Post subject: Re: setting depth of a movie clip Reply with quote

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
View user's profile Send private message
anyonewannaspud



Joined: 01 Oct 2007
Posts: 8

PostPosted: Sun Mar 16, 2008 1:07 pm    Post subject: Re: setting depth of a movie clip Reply with quote

cheers for the reply,

In the end I used:

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


gotoAndPlay(229);

}

cheers Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Flash Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap