ActiveDen

Scrolling Particle Background

A mouse driven particle effects animation that can be customized in many ways. Things like different linkageIDs for different multiple particles, an array of colours, animation speed, motionBlur and alpha depth Fade can be altered to create an interesting mix of mouse drive animations.

NOTE : I neglected to document another parameter (moveFactor) that can be passed in in the FLA file itself. Please see below for the update…

All that is needed is these lines of code :

import com.meerkatlookout.effects.particleScroller;
var scroller:particleScroller = new particleScroller();

And then an initialization setting up the optional parameters such as those shown in the above movie.

Here are the parameters that can be changed

  • container_mc : MovieClip – a clip to create particles in
  • particleIDs : String/Array – these are linkageIDs of items in the library. These items should also have their AS2 .0 class filled out as “com.meerkatlookout.effects.particle”
  • initObject : Object – an OPTIONAL Object containing the following :

contentMc : String – linkageID of a movieclip that can be used to float particles above/below

particlesNum : Number – number of particles to generate

coloursArr : Array – if empty then generate random colour Transform for each particle – if populated then it will randomly colour Transform each particle using one of the listed colours – do not pass or pass null will NOT produce any transform and leave in original colours

scaleThreshold : Number – determines at what scale (1-100) the particle will be considered “above” the contentMc

easingFactor : Number – determines how quickly deccelaration of scrolling occurs

depthFade : Boolean – if true will also alpha out particles as they get smaller

moveFactor : number – a movement factor that will effect the speed the particles move. Default is 0.8

blurAmount : Number – a blurring factor to increase/decrease the blurred effect

motionBlur : Boolean – if true then particles will motion blur as mouse is moved

by
by
by
by
by