package{ import flash.display.*; public class Main extends Sprite{ public function Main(){ var squareData:BitmapData = new BitmapData(200, 200, false, 0xFFCC00CC); var square:Bitmap = new Bitmap(squareData); addChild(square); } } }