Dynamic Image Load
var imageLocation:String = File.applicationDirectory.nativePath + "\\assets\\LineBoarderTop.png";
var borderImage:Image = new Image();
borderImage.source = imageLocation;
borderImage.percentHeight = 100;
borderImage.percentWidth = 100;
borderImage.scaleContent = true;
borderImage.maintainAspectRatio = false;
borderImage.addEventListener(Event.COMPLETE, function(e:Event):void
{
var bitmapData:BitmapData = Bitmap(e.target.content).bitmapData;
// draw white background
});
borderImage.load(imageLocation);