# Add a background in a platform game

**URL:** https://forum.kirupa.com/t/add-a-background-in-a-platform-game/327953
**Category:** flash
**Created:** [April 8, 2012, 1:05pm UTC](https://forum.kirupa.com/t/add-a-background-in-a-platform-game/327953 "2012-04-08T13:05:32Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![MFRS](https://avatars.discourse-cdn.com/v4/letter/m/aca169/32.png) [@MFRS](https://forum.kirupa.com/u/MFRS)
#### Post date: [April 8, 2012, 1:05pm UTC](https://forum.kirupa.com/t/add-a-background-in-a-platform-game/327953/1 "2012-04-08T13:05:32Z")

</div>

I am doing a as3 platform game based in arrays, so inside the array I inserted a variable rh that inserts the bg in the stage but it doesn’t show up in the stage. The code i have is:

```auto
else if (lvlArray* == 'ROCKYHILLS') {
                    var newRockyHills:backRocky = new backRocky;
                    newRockyHills.x = _root.stage.width/2;
                    newRockyHills.y = _root.stage.height/2;
                    
                    blockHolder.addChild(newRockyHills);
                }

```

Any suggestions?
