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 bmp1:Bitmap = new Bitmap(imgData); addChild(bmp1); var bmp2:Bitmap = new Bitmap(imgData); bmp2.rotation = 45; bmp2.x = 50; bmp2.scaleX = 2; // 200% bmp2.scaleY = 2; // 200% addChild(bmp2); } }}
Name (required)
email (will not be published) (required)
Website