# Flash flurry of falling pounds

**URL:** <https://forum.kirupa.com/t/flash-flurry-of-falling-pounds/277874>\
**Category:** Uncategorized\
**Created:** [December 18, 2008, 10:46am UTC](https://forum.kirupa.com/t/flash-flurry-of-falling-pounds/277874 "2008-12-18T10:46:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ambidextre](https://avatars.discourse-cdn.com/v4/letter/a/f9ae1b/32.png) [@ambidextre](https://forum.kirupa.com/u/ambidextre)\
**Post date:** [December 18, 2008, 10:46am UTC](https://forum.kirupa.com/t/flash-flurry-of-falling-pounds/277874/1 "2008-12-18T10:46:13Z")

</div>

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]](http://www.kirupa.com/developer/flash8/snow.htm), 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()_(3_width);  
t.\_y = -10;  
// random sizes for each  
t.\_xscale = t.\_yscale=30+Math.random()_(max\_billsize_5);  
// 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);
