//create a variable to hold a number, set it to 1
//to create a variable create a name and set it to a value
//end the statement with a semi-colon
n=1;
//create a varable named lifetime. Set it to 20
________________________
//create a variable named eratic. Set it to 100
________________________
//call setInterval, pass it startParticle and 1
//the line below calls a function and passes it 2 arguments
setInterval(startParticle,1);
//define the function startParticle
//the line below begins the function definition
function startParticle(){
//call the function insertParticle. Pass it the location of the mouse
//the mouse's horizontal location is the _xmouse property
________________________
}
//define the function insertParticle. This function takes two parameters (x and y)
________________________
//create a variable named mc. set it to the new instance of the particle clip
//set it to the location passed into the function
//attachMovie("particle", "particle" + n, n, {_x:x,_y:y});
mc=______________________
//Make the clip visible by setting the _visible property of the clip to true
________________________
// Initialize X and Y velocities
mc.vx = (random(3) - 1);
mc.vy = (random(3) - 1);
// create a property called life on each clip and set it to the variable lifetime
//to create a property, use the dot operator clip.property where clip is mc and property
//is life
________________________
//create an anonymous onEnterFrame function on each clip
mc.onEnterFrame=function(){
// Get current position and add XYVelocities
this._x += this.vx;
this._y += _______;
// Alpha and scale is dependent on proximity to death
this.ap = (this.life / lifetime) * 100;
this._alpha = this.ap;
this._xscale = ______;
this._yscale = ______;
// Eratic behavior closer to death
this.vx += (random(eratic) - (eratic / 2)) / this.ap;
this.vy += _________________________________________;
// decrement the life of this clip by 1
//remember life is the property of clip mc
//to decrement use this expression:
//-=1
//or
//--
________________________
//check if the life of this clip is less than 0
//this is an if statement if(clip.property<0){
//where clip is mc and property is life
________________________
// if the life counter is up, remove particle
//by calling: delete this.onEnterFrame
________________________
//remove the particle by calling the function removeMovieClip()
//on the clip (this)
________________________
}
};
//increment your number variable by 1
________________________
}