/ Published in: ActionScript 3
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var backGroundSprite:Sprite = new Sprite(); backGroundSprite.graphics.beginBitmapFill( new BgPattern( 0, 0 ) ); backGroundSprite.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight); backGroundSprite.graphics.endFill(); addChildAt(backGroundSprite, 0);