есть вот такой код:

Код AS1/AS2:
i = 0;
Int = setInterval(mc_clip, 1000);
function mc_clip() {
i++;
s = random(2);
man = attachMovie("mc_clip", "clip"+i, i);
man._y = 190+random(90);
man.speed = 1+random(2);
if (s == 0) {
man._x = -20;
man._xscale = 100;
}
if (s == 1) {
man._x = 220;
man._xscale = -100;
}
man.onEnterFrame = function() {
if (this._y>=this._parent._y) {
this.swapDepths(this._parent.getNextHighestDepth());
}
if (this._xscale == 100) {
this._x += this.speed;
}
if (this._xscale == -100) {
this._x -= this.speed;
}
};
}
Мувики которые, находятся по _y выше наезжают на нижние. Как правильно оформить swapDepths, чтобы глубина мувиков отображалась корректно?