Flash Games

 FAQ   Search   Members   Groups   User Control Panel      Login 

It is currently Tue Dec 02, 2008 11:22 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: setting depth of a movie clip
PostPosted: Wed Jan 30, 2008 5:34 am 
Offline

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


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 10, 2008 12:30 pm 
Offline
50+ Club

Joined: Thu Nov 15, 2007 11:46 pm
Posts: 98
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!


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 16, 2008 1:07 pm 
Offline

Joined: Mon Oct 01, 2007 6:05 pm
Posts: 8
cheers for the reply,

In the end I used:

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


gotoAndPlay(229);

}

cheers :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group - Flash Games
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: