I can’t seem to get this to work with BitmapData library items, though it is working for the MovieClip items…
I have a utility function which grabs items from the library
public static function create(className:String):Class
{
return new (ApplicationDomain.currentDomain.getDefinition(className) as Class);
}
Here is the code i’m using to add the BitmapData to the stage…
var ChromeBackground:Class = Utilities.create(“mc_chromeBackground”);
var chromeBG_BD:BitmapData = BitmapData(new ChromeBackground());
var bmp:Bitmap = new Bitmap(chromeBG_BD);
this.addChild (bmp);
The BitmapData object isn’t showing up on screen. What am i doing wrong??
THANKS in advance!!!
Lori-