so, my question is, imI'm currently writing a code that when executed, it'll attach lots of movieClips into the _root property, what i want to know, is if. Is there is a way to choose which layer these movieClips are attached into.?
perFor example:
_visible = false; var entitySpawn; var ID = 10; function spawnEntity(TYPE, X, Y) { entitySpawn = _root.attachMovie(TYPE, TYPE+"_"+ID, ID); entitySpawn._x = X; entitySpawn._y = Y; ID++; } iI know that the variable ID gives it the depth, but is there a way to chose between the layers itself, so that certain movieClips are above other, no matter their depth?