var temp:Sprite = new Sprite(); temp.addChild(main_mc); var data_bmp:BitmapData = new BitmapData(glHolstW,glHolstH); data_bmp.draw(temp);