PDA

View Full Version : a question about levels



xmattx
October 14th, 2003, 12:24 AM
im using a load targetscript to load external swfs into the main timeline of my movie, however im keeping much of the other layers/mc's loaded, and the external swf is loading over them, the level the blank movie clip is created in doesnt seem to be working propperlly?? whats going wrong?

bandb.onPress = function() {
_root.createEmptyMovieClip("empty2", 4);
loadMovie("flash/band.swf", "_root.empty2");
container._x = 0;
container._y = 0;
};

thats the "4" as in the 4th layer, up from the bottom!

help?!

thanks :b:

Yeldarb
October 14th, 2003, 12:34 AM
feel free to correct me anyone, but with my limited knowlege of levels, i think it would be level 40 intead of level 4
just a guess though...

xmattx
October 14th, 2003, 12:37 AM
good idea, didnt work though :(

must not be it.

anyone else?

scotty
October 14th, 2003, 11:24 AM
if i understand you well, you're confusing layers with levels:

thats the "4" as in the 4th layer, up from the bottom!
you said you had other mc's loaded, in which level? cause you're loading this in level 4.

if i did understood you wrong, excuse me

scotty

claudio
October 14th, 2003, 11:40 AM
I think you are confused by what is a layer and what is depth.
You can have 8 layers on your movie, but unless you specify using Actionscript, everything is loaded into same depth (in this case, level0).

Now the stacking order in level 0 is controled by the layers order. Whatever is on top most layer will be on top of everything else on level 0. So if you have 3 layers on your movie, the bottom-most has a square, the middle one has a circle and the top-most one has a triangle, all overlapping eachother, the triangle will be on top of the circle, and the circle will be on top of the square.

Now if you have anything loaded in level4, it will be on top of level0, level1, level2 and level3.

I hope this helps you. :-\