Creating a BitmapData Object
package{ import flash.display.*; public class Main extends Sprite{ public function Main(){ var bmpRectangle:BitmapData = new BitmapData(500, 200); } } }