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

layers question. need help

Status
Not open for further replies.

jayinottawa

Programmer
Apr 11, 2003
5
CA
I have my main interface and its on layer (0) but i want to change that to layer (1) so i can load a movie background behind that on layer (0) so do i do that?

please help.

thanks.
 
If you're really talking levels (and not layers), make your background your main movie, and load your external interface movie on level 1 with:

loadMovieNum("interface.swf", 1);

Otherwise you can use an empty container clip inserted on a layer above your background layer, to load in your external interface movie with:

_level0.container_mc.loadMovie("interface.swf");

Regards,

cubalibre2.gif
 
that wont work. because i want the backgrounds changable. so is there a way to change my main interface level? to 1 instead of 0? how do you change levels? not layers... so this is what i want.

level (0) 4 different background files. that swap when loaded getting commands from the main interface that will be top of the background file on level 1.

please keep... i need to know how to change what level things are on. (not load on)
 
swapdepths() is the command you want. check it in the actionscript dictionary.
 
can u explain that more..... do i selected everthing on the interface then put that command on it? or what? how do i tell that file to load on level 1? instead of 0.

and another question. when i make a new project can i tell it what level to put it on before i start?

jay.
 
can u explain swapdepth() for me...

thanks.

are u sure thats the one i should use?
 
well perhaps you could explain what exactly you want.
one post you say no not loading then you suggest it is loading.

swapdepths is for when you have more than 1 movieclip on stage and you want to change the stacking order ie bring one to the front and push the rest back which is what i got from your post.
 
SwapDepths is used on layers not on levels. Which is it layers or levels.

BTW, as I understand it, loading the interface on level 1 would work, and you could change (switch) any number of backgrounds if they were in movie clips, loaded in a "main background" movie on level 0. They could also even be controlled from the "interface.swf" movie loaded on whatever higher level.

Regards,

cubalibre2.gif
 
yess that is what i want to do. have my interface on level 1 and my backgrounds load under it on level 0. but my interface is on level 0 and you can go under that. so i need to move that up to level 1 so the backgrounds will come in under that instead of on top of that.
 
Make you main movie the "background" movie on level 0. Then, from the main movie, load your interface.swf on level 1. Bingo interface over background!

Regards,

cubalibre2.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top