I am trying to use AS3 to call a series of linked bitmaps randomly. The bitmaps are all named "lines" + # so i created a variable to concatenate lines with a random number which works fine. The example below pulls the lines3 bitmap without issue but if i attempt to sub the lConstruct variable for lines3, it doesn't work. I know this is probably simple but i'm drawing a blank.
var lConstruct:String = ("lines" + RandNumGen())
var lTest:BitmapData=new lines3;
var bitmap1:Bitmap=new Bitmap(lTest);
addChild(bitmap1);