The TiledBack class allows to create a background of url-encoded objects in a defined area (Timeline, Stage etc). To create a background use the constructor new TiledBack() and add parameters as desired.
Dispatched when a "yes" or "no" button is pressed. To detect, which button was pressed use the instance name and the answer property (see example).
Create a new fla file and name it TiledBack.fla. Place the fla in the same folder as the biz folder. Have an image of your choice ready in a folder named "images". Then create an Actionscript file, name it Tiledback.as and place this script. You should see a tiled background and a rectangle in the center with two images.
public class Tiledback extends Sprite
public function Tiledback ():void
var mystageBack:TiledBack = new TiledBack(stage, "images/a1.jpg");
mystageBack.alpha = 0.2;
mystageBack.addEventListener (TiledBack.TILE_COMPLETE, completeHandler);
private function completeHandler (event:Event):void
var mySquare:Square = new Square();
mySquare.x = 133;
mySquare.y = 112;
var myBack:TiledBack = new TiledBack(mySquare, "images/a2.jpg", mySquare.width - 6, mySquare.height - 6);
myBack.addEventListener ("tileComplete", tellmeComplete);
private function tellmeComplete (event:Event):void