swapDepths() can be used to set a depth so there's no point in adding a setDepth() method:
yourMC.swapDepths(10); // assigns yourMC to depth 10
Oh, i didn't know i can swap depths by specifying a numeric value and all this time i was doing complicated routines to swap depths of movieclips in a gallery. Thanks.
1 person found this helpful
Yeah, there is really no substitute for reading the documentation!
BTW, here is a great article about how depths work in AS2. I highly recommend it:
p.s. please mark this thread as answered, if you can.