# Alpha and children

**URL:** <https://forum.kirupa.com/t/alpha-and-children/279816>\
**Category:** flash\
**Created:** [January 19, 2009, 5:23pm UTC](https://forum.kirupa.com/t/alpha-and-children/279816 "2009-01-19T17:23:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shoany](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@shoany](https://forum.kirupa.com/u/shoany)\
**Post date:** [January 19, 2009, 5:23pm UTC](https://forum.kirupa.com/t/alpha-and-children/279816/1 "2009-01-19T17:23:14Z")

</div>

Hey all,  
So I’m pretty new to As3 and I’m trying to put together a site. Things are going okay, but I’ve hit a snag: I have a movieclip with its own code loading up as a viewer (from another movieclip that functions as a gallery).

The movieclip in question (put together in AS) has the following children, added in this order:

1. BG - 80% alpha, plain white box
2. Image 1
3. Image 2
4. Image 3
5. Text

Problem is, even with the index lower than the images, the BG seems to be sitting on top (giving everything a faded appearance). I double-checked the indexes and sure enough, BG is lowest. Anyone have any ideas? This is driving me nuts, especially after figuring out so much on my own. Thanks!

```auto

var bgbox:whitebox = new whitebox();
bgbox.alpha = .8;
addChild(bgbox);

pbox.x = 37.5;
pbox.img = "gallery/client1/image3.jpg";
picarray.push(pbox);
addChild(pbox);

etc...

```
