He hecho una animación partiendo de un código bajado de internet, son unos copos de nieve que simulan estar cayendo, el código es el siguiente;
// Based on Kirupa.com Tutorial
// Flash Snow 3.0 by Sam Kellett aka Sammo
// URL: www.kirupa.com/developer/flash8/snow.htm
// Modified by www.flashmo.com
w = Stage.width;
h = Stage.height + 100;
max_snowsize = 15;
snowflakes = 200;
init = function ()
{
for( i = 0; i < snowflakes; i++ )
{
t = attachMovie("snow", "snow"+i, i);
t._alpha = 50 + Math.random()*50;
t._x = -(w*0.5) + Math.random()*(1.5*w);
t._y = -(h*0.5) + Math.random()*(1.5*h);
t._xscale = t._yscale = 50 + Math.random()*(max_snowsize*10);
t.k = Math.random()*1.5 + 1;
t.wind = Math.random()*3.5 - 1.5;
t.onEnterFrame = mover;
}
}
mover = function ()
{
this._y += this.k;
this._x += this.wind;
if(this._y > h+10)
{
this._y = -20;
}
if(this._x > w+20)
{
this._x = -(w*0.5) + Math.random()*(1.5*w);
this._y = -20;
}
else if(this._x < -20)
{
this._x = -(w*0.5) + Math.random()*(1.5*w);
this._y = -20;
}
}
init();
Mi problema es que no quiero que aparezcan en primer plano, si no que tengo una capa que tiene que aparecer por encima de ellos.
Alguien sabría decirme como lo puedo hacer.
Muchas gracias a todos
Fedeque