This content has been marked as final. Show 5 replies
what do you mean by "... I loaded swf files onto the movie clips..."?
I meant that use the loadMovie function to load a SWF file into the movie clip I created earlier. thank you
those two movieclips are probably swapping depths but you may not see what you expect: they can't be positioned above a movieclip that's above their parent or below a movieclip that's below their parent. but they should be changing depth relative to each other.
to confirm use the following and post the trace results:
thank you kglad! As you said the two movie clips do swap depths, but not as I expected. Is there a way to solve this problem? Rather than using swapDepths method, what else I could use to make two movie clips swap position? thank you!
you may be able to swap depths of the parent AND those two (just as you're doing now) or you may need to load them into different parent movieclips (and swap depths of their parents). it depends upon what you're trying to do.
if one of those is to be moved above a movieclip that's above the parent and the other is to be moved below that movieclip, then they'll have to be loaded into different parents.
otherwise, you can use your current setup and move the parent where you need (by adding bgBlue_mc._parent.swapDepths() with no need to do this for bgYellow_mc, too) and use your current code to move bgBlue_mc and bgYellow_mc relative to each other.