flash on 2012-6-30
/**
* Copyright Youth-K ( http://wonderfl.net/user/Youth-K )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/jocJ
*/
package {
import flash.display.AVM1Movie;
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
public class FlashTest extends Sprite {
private var sp:Sprite;
private var btd:BitmapData;
private var btm:Bitmap;
public function FlashTest() {
sp = new Sprite();
sp.graphics.beginFill(0x0000);
sp.graphics.drawCircle(10,10,10);
sp.graphics.endFill();
btd = new BitmapData(20,20,false);
btd.draw(sp);
btm = new Bitmap(btd);
this.addChild(btm);
}
}
}