import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.utils.getDefinitionByName;
var logoSmall:Bitmap = new Bitmap();
var classDefinition:Class = getDefinitionByName("logo1.png") as Class;
var img:BitmapData = new classDefinition(1,1);
logoSmall.bitmapData = img;
addChild(logoSmall);