Только почему-то битмап не дорисовывает последнюю картинку...

Код:
import flash.display.BitmapData;
var my_mcl:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();
var count=0;
var flag:Boolean = true;//флаг, сигнализирующий возможность следующей загрузки
var i:Number = 1;//счетчик файлов, клипов
var N:Number = 30;//количество картинок
myListener.onLoadInit = function(target_mc:MovieClip) {
count++;
flag = true;
};
my_mcl.addListener(myListener);
this.onEnterFrame = function():Void {
if (flag) {
var zzz = "mc"+i;
var xxx = "mc" + (i-1);
var qqq = "dmc" +i;
var www = "dmc" + (i-1);
flag = false;
var bmd:BitmapData = new BitmapData(80, 80, true, 0x00000000);
bmd.draw(this[xxx]);
this[www].attachBitmap(bmd, this.getNextHighestDepth(), "auto", true);
this.createEmptyMovieClip(zzz, this.getNextHighestDepth());
this.createEmptyMovieClip(qqq, this.getNextHighestDepth());
if(i == 1) {
this[zzz]._x = 5;
this[zzz]._y = 5;
this[qqq]._x = 5;
this[qqq]._y = 430;
} else if( i <= 6) {
this[zzz]._x = this[xxx]._x + 85;
this[zzz]._y = this[xxx]._y;
this[qqq]._x = this[www]._x + 85;
this[qqq]._y = this[www]._y;
} else if( i == 7){
this[zzz]._x = 5;
this[zzz]._y = this[xxx]._y + 85;
this[qqq]._x = 5;
this[qqq]._y = this[www]._y + 85;
} else if (i <= 12) {
this[zzz]._x = this[xxx]._x +85;
this[zzz]._y = this[xxx]._y;
this[qqq]._x = this[www]._x +85;
this[qqq]._y = this[www]._y;
} else if (i == 13) {
this[zzz]._x = 5;
this[zzz]._y = this[xxx]._y + 85;
this[qqq]._x = 5;
this[qqq]._y = this[www]._y + 85;
} else if (i<= 18) {
this[zzz]._x = this[xxx]._x + 85;
this[zzz]._y = this[xxx]._y;
this[qqq]._x = this[www]._x +85;
this[qqq]._y = this[www]._y;
} else if (i == 19) {
this[zzz]._x = 5;
this[zzz]._y = this[xxx]._y + 85;
this[qqq]._x = 5;
this[qqq]._y = this[www]._y +85;
} else if (i <= 24) {
this[zzz]._x = this[xxx]._x + 85;
this[zzz]._y = this[xxx]._y;
this[qqq]._x = this[www]._x + 85;
this[qqq]._y = this[www]._y;
} else if (i == 25) {
this[zzz]._x = 5;
this[zzz]._y = this[xxx]._y + 85;
this[qqq]._x = 5;
this[qqq]._y = this[www]._y + 85;
} else {
this[zzz]._x = this[xxx]._x + 85;
this[zzz]._y = this[xxx]._y;
this[qqq]._x = this[www]._x + 85;
this[qqq]._y = this[www]._y;
}
my_mcl.loadClip("images/"+i+".jpg", zzz);
i++;
if (i>N) {
delete this.onEnterFrame; break;
}
}