Instantiate Class with Dynamic Name

Hello all,

I have no idea how to do this, but I’m sure it is relatively straightforward… or so I hope. I’ve gone through many good hits, but can’t make it work the way it’s discussed.

import flash.display.Sprite;
import flash.display.Bitmap;

var imageSprite:Sprite;
imageSprite = new Sprite();
addChild(imageSprite);

var libraryImage:Bitmap = new Bitmap(new image1(0,0));

imageSprite.addChild(libraryImage);

The above works just fine, but what I want to do is reference the image1 class incrementaly. That is image2, image3, image4, etc.

Any help is appreciated.

K