Posted By

carlskov on 09/27/11


Tagged

as3


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

PawelGIX


AS3 tiled background


 / Published in: ActionScript 3
 

  1. var backGroundSprite:Sprite = new Sprite();
  2. backGroundSprite.graphics.beginBitmapFill( new BgPattern( 0, 0 ) );
  3. backGroundSprite.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
  4. backGroundSprite.graphics.endFill();
  5. addChildAt(backGroundSprite, 0);

Report this snippet  

You need to login to post a comment.