# Can't see Rain Code

**URL:** <https://forum.kirupa.com/t/cant-see-rain-code/130579>\
**Category:** Uncategorized\
**Created:** [December 6, 2004, 3:07pm UTC](https://forum.kirupa.com/t/cant-see-rain-code/130579 "2004-12-06T15:07:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Swordsman](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@Swordsman](https://forum.kirupa.com/u/Swordsman)\
**Post date:** [December 6, 2004, 3:07pm UTC](https://forum.kirupa.com/t/cant-see-rain-code/130579/1 "2004-12-06T15:07:59Z")

</div>

hello all, I’m very new to this whole actionscript thing and was hoping someone could help me out. I have this Rain code that I’m trying to insert in my movie but it won’t play at all. I can see it by itself but when I try putting it with other actionscript code it won’t do anything. Is there a way to get this code to play in the foreground over everything under it? Thanks

```auto
function createRain() 
{ 
this.createEmptyMovieClip("[color=#ff6600] **rain** [/color]" + (++this.HL), this.HL).onEnterFrame = function() 
{ 
(this._y += 20) < 400 ? this._x += Math.random() * 4 - 2 : this.removeMovieClip(); 
}; 
this._parent.createDrops(this["[color=#ff6600] **rain** [/color]" + this.HL]); 
} 
function createDrops(t) 
{ 
for (var c = 0; c < 70; c++) 
{ 
t.lineStyle(1, 0xFFFFFF, Math.random() * 10 + 15); 
**x = Math.random() * 400;**
**y = Math.random() * 600;**
t.moveTo(x, y); 
t.lineTo(x + Math.random() * 4 - 2, y + 25); 
} 
} 
 
this.createEmptyMovieClip("[color=#ff6600] **rain** [/color]", ++this.HL); 
this.[color=#ff6600] **rain** [/color].onEnterFrame = createRain; 

```
