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
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;