Cant sink log



[SIZE=2][LEFT]I am loading a series of images that animate a sinking log. The log sinks down in water and then rises back up  so I display 3 images to sink and the same images in reverse so it rises again and repeated continually.
 
What I get is the images being displayed in some weird order and not in the order as in urls16?
I cant display these images in the order given below?
 I dont get any error.
[/SIZE] 

**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]private**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE]**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] urls16:Array = [[/SIZE]**[SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"images/logW1.png"**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE]**[SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"images/logW2.png"**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE]**[SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"images/logW3.png"**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE]**[SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"images/logW3.png"**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE]**[SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"images/logW2.png"**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2], [/SIZE]**[SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"images/logW1.png"**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]];[/SIZE]
[SIZE=2][/SIZE] 
[SIZE=2] [/LEFT]
[SIZE=2][/SIZE]**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc][SIZE=2][LEFT][/SIZE]**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] en4:ClassEnemylog
en4=[/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]new**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ClassEnemylog(urls16,1,6,300,256,480,0,2,96,32,10);
en4.addEventListener([/SIZE]**[SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"image_loaded"**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2],imageLoadedHandler);
canvas1.addChild(en4);[/LEFT]
myEnemyList12.push(en4);
 
/////[SIZE=2]
[LEFT] [/LEFT]
[SIZE=2][LEFT][/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]for each**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] ([/SIZE]**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] el:String [/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]in**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] urls) {
[/SIZE]**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] loader:Loader = [/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]new**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Loader;
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, imageLoaded);
loader.load([/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]new**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] URLRequest(el));
[/LEFT]
}
[LEFT][/SIZE][/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]private**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE]**[SIZE=2][COLOR=#339966][SIZE=2][COLOR=#339966]function**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] imageLoaded(event:Event):[/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]void[/LEFT]
**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]{
[/SIZE]**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Singleimage:Bitmap = [/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]new**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] Bitmap(event.target.content.bitmapData);[/SIZE]
**[SIZE=2][COLOR=#6699cc][SIZE=2][COLOR=#6699cc]var**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] bmd=Singleimage.bitmapData;
MyBData.push(bmd);[/LEFT]
...
[/SIZE][/SIZE]**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][SIZE=2][LEFT] 
///////////////////// where it animates[/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]public**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] [/SIZE]**[SIZE=2][COLOR=#339966][SIZE=2][COLOR=#339966]function**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] moveLeft():[/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]void[/LEFT]
**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]{
[/SIZE]**[SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]if**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] (_x<_endX -100 ) 
{
_x=_startX;
}


[/SIZE]*[SIZE=2][COLOR=#009900][SIZE=2][COLOR=#009900]//_x-=_speed;[/LEFT]
*[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2][LEFT]

**timej+=1;**
[/SIZE][SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]**if**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]** (timej>=32)**
**{**
**i=i + 1;**
[/SIZE][SIZE=2][COLOR=#0033ff][SIZE=2][COLOR=#0033ff]**if**[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]** (i>=_noFrames)**
**{i=0;}**

img1.bitmapData=MyBData*; ///////////////this is the issue
[/SIZE][SIZE=2][COLOR=#cc6666][SIZE=2][COLOR=#cc6666]trace[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2]([/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"in animate="[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + i + [/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]" timej="[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + timej + [/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]" _noFrames="[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] + _noFrames + [/SIZE][SIZE=2][COLOR=#990000][SIZE=2][COLOR=#990000]"length="[/COLOR][/SIZE][/COLOR][/SIZE][SIZE=2] +MyBData.length);
timej=0;
}

img1.x=_x;

}[/LEFT]

[/SIZE] 
[/SIZE][/SIZE]