is there a way to add some code in the first frame of the main movie’s timeline that sets certain MC’s that i specify into level 1000?
i’m going to be using swap depths for a project but i need certain clips to always remain on top no matter what. the swap depth of the other movies will constantly be raising them by 2 levels, so i figure i’ll put the ones i need on top on level 1000 as the others should never reach that high.
i was thinking i’d have to either add an array with the MC’s i need moved to level 1000, or make them _global. and set a property to that somehow.
any ideas? thankls!
ig u just want to giv an MC a set depth then add
onClipEvent(enterFrame){
this.swapDepths(1000);
}
On the timeline mcName.swapDepths(1000)
You might be better just attaching the movie dynamically at 1000, because when using swapDepths there is sometimes something left of the mc at the original depth.
thanks Scribble. that did the trick. i was hoping there would be a way to define an array of MCs on the first frame and not have to mark each one individually with the code, but your solution worked just as well. thanks!
stringy, you were right. some of those MCs had other MCs inside them, so when i used your code in the first frame the nested MCs didn’t swap depths. thanks for the advice though, it’s great to test different things and learn :thumb: