# Trouble with display object list

**URL:** <https://forum.kirupa.com/t/trouble-with-display-object-list/306521>\
**Category:** flash\
**Created:** [March 16, 2010, 11:15pm UTC](https://forum.kirupa.com/t/trouble-with-display-object-list/306521 "2010-03-16T23:15:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![skippers](https://avatars.discourse-cdn.com/v4/letter/s/90ced4/32.png) [@skippers](https://forum.kirupa.com/u/skippers)\
**Post date:** [March 16, 2010, 11:15pm UTC](https://forum.kirupa.com/t/trouble-with-display-object-list/306521/1 "2010-03-16T23:15:14Z")

</div>

I’m having trouble understanding the display object list. I have a rain animation which I want to be slightly covered by a frame. This is the code so far in the main timeline. When I add the Frame in addChild it only covers the graphics manually placed on stage. Any help would be much appreciated.

var timer:Timer=new Timer(250);//timer that creates txt  
timer.addEventListener(TimerEvent.TIMER,Timer\_F);//set timer to triger function “timer\_F”  
timer.start();//start the timer  
var widthOfCloud:Number=30; //set width of cloud  
var heightOfCloud:Number=40; //set height, this is the distance from the top left corner

function Timer\_F(event:TimerEvent):void {//function that is trigered by the timer

```
var xpos:Number=(Math.floor(Math.random()*widthOfCloud));//don't touch
var txt:txt_mc=new txt_mc();//create variable for txt mc

txt.x=(stage.mouseX+(widthOfCloud/2))-(xpos);//don't touch
txt.y=heightOfCloud;//don't touch
txt.alpha=.4; // 40% alpha;
addChild(txt);//don't touch

```

}

var myFrame:Frame = new Frame();  
addChild(myFrame);
