package{ import flash.display.*; import flash.utils.*; import flash.events.*; import flash.geom.*; import flash.text.*; public class Main extends Sprite{ public function Main(){
var redSquare:BitmapData = new BitmapData(20, 20, true, 0xFFFF0000); var blueSquare:BitmapData = new BitmapData(20, 20, true, 0xFF0000FF);
var sourceRect:Rectangle = new Rectangle(5, 5, 10, 5);