public class Etude extends Sprite { public function Etude() { addChild(new BgShape()); } } } import flash.geom.*; import flash.display.*;
class BgShape extends Shape { public function BgShape(){ //タイル var tile:BitmapData = new BitmapData(20,20,true,0xffffffff); tile.fillRect( new Rectangle(0,0,10,10),0xffcccccc); tile.fillRect( new Rectangle(10,10,10,10),0xffcccccc);