Animation from array of bitmaps

Currently, my code is able to load up bitmap images into an array. The next step I would like to accomplish is to display the first image in the array, remove it, display the next image… and so forth. Unfortunately I am having trouble getting it to work and I was hoping I could get help. My current code is attached below:


function playSlideShow(e:MouseEvent):void
{
    for (var j:int = 0; j < bitmapArray.length; j++)
    {
        if (j > 0)
        {
            //remove previous image
            removeChild(bitmapArray[j-1]);
        }
        
        bitmapArray[j].x = 530;
        bitmapArray[j].y = 30;
        addChild(bitmapArray[j]);
        
        if (j == bitmapArray.length)
        {
            j = 0;
        }
    }
}