[Embed(source = 'assets/src.png')] private var src_img:Class; var _src:Bitmap = new HERO_IMG() as Bitmap; addChild(heroBMP)