Hi,
I need to have a variable flurry of falling pounds in the background of an ad.
I found a great [COLOR=#0000ff]falling snow tutorial[/COLOR] on [URL=“http://www.kirupa.com/developer/flash8/snow.htm”][COLOR=#0000ff]Kirupa[/COLOR], with well-written, easy to modify code.
However the falling pounds can’t be put behind the message, is there anyone who knows how to do that.
Many thanks
var billno:Number = 0;
dropbill = function () {
width = Stage.width;
// you can put a number without pixels
height = Stage.height;
// you can put a number without pixels
max_billsize = 0;
// “dolla” is the single animated horizontally spinning dollar
t = attachMovie(“pound”, “pound”+billno, billno);
// random location along the top of the movie
t._x = (width/25)+Math.random()(3width);
t._y = -10;
// random sizes for each
t._xscale = t._yscale=30+Math.random()(max_billsize5);
// gravity
t.g = 10+Math.random()2;
// wind
t.w = -1.5+Math.random()(1.4*3);
// they start falling with different angles
t._rotation = Math.random()*360;
// random angle on x-axis spin (animated)
t.gotoAndPlay(1+random(24));
// so that they move
t.onEnterFrame = mover;
billno = billno<250 ? billno+1 : 0;
};
mover = function () {
this._y += this.g;
this._x += this.w;
if (this._y>height+100 || this._x>width+100 || this._x<-50) {
this.removeMovieClip();
}
};
// to make two dollars per second fall, put this on the timeline:
clearInterval(countup);
countup = setInterval(dropbill, 650);