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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MC levels?

Status
Not open for further replies.

HuggerFanta

Technical User
Apr 22, 2002
87
SE
Hello group!
In the start of my movie I have 3 MC that are illustrations on the inside of a building, each MC contains a floor of the 3 floor high building.

Can I tell what level each MC shold have and when moving buttons over a hot spot get a nother MC at the top?

And start with a sertan floor?

PLZ help me whit this?
--------------------------------------
Kind regards;
HuggerFanta
 
If I understand you correctly, then the answer to part one is that the lower number level is on the bottom...i.e. 0 is on the very bottom, 1 is on top of that, 2 on top of that, etc...

part two involves swapping depths and can be achieved by when the hotspot is clicked (or mouseover or whatever) use the code:

this.swapDepths(9999);

this will put that particualar movie clip on the very top.
if you want to grab a particular MC's current level use:

oldDepth = this.getDepth();

that way when you swap the MC to the top level (9999), you can put it back to the level it came from via:

this.swapDepths(oldDepth);

hope this is what you are looking for!

tazzmann Tazzmann
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top