Frame 1
timer = 0;
timerMax = 2;
particleCount = 0;
gravity = 1;
doStuff = function () {
this._x = this._x + this.xSpeed;
this.ySpeed = this.ySpeed + gravity;
this._y = this._y + this.ySpeed;
this._rotation = this._rotation + this.rot;
this._alpha = this._alpha - 2;
this._xscale = (this._yscale = this._yscale - 5);
if (this._y > 450) {
this.removeMovieClip();
}
};
onEnterFrame = function () {
timer++;
if (timer == timerMax) {
particle = _root.attachMovie("square", "p_" + particlCount, _root.getNextHighestDepth());
particle._x = _xmouse;
particle._y = _ymouse;
particle.xSpeed = random(10) - 5;
particle.ySpeed = random(20) - 20;
particle.rot = random(20) - 10;
particle.bigness = random(300) + 50;
particle._xscale = (particle._yscale = particle.bigness);
particle.onEnterFrame = doStuff;
timer = 0;
particleCount++;
}
};