package{ import flash.display.Sprite; import flash.display.*; import flash.geom.*; public class Main extends Sprite{ public function Main(){ var imgData:BitmapData = new BitmapData(20, 20, false, 0xFF00FF00); imgData.fillRect(new Rectangle(5, 5, 10, 10), 0xFF0000FF); var bmp:Bitmap = new Bitmap(imgData); bmp.bitmapData = imgData; addChild(bmp); } }}
Name (required)
email (will not be published) (required)
Website