Notepad Web Development

Feed icon

AS3 Flashing EQs



Created as part of Rizla UK’s 2010 Invisible Players pages.

The code for this flashing banner was fairly concise, amounting to a hundred or so lines, across 2 classes.
The document class creates 45 EqBar objects, and every 1/300 seconds will generate a random number and call setVolume() for a group of bars. Bars are grouped so that neighbouring bars can have relative volume levels.

I added a calculation to create the fade-off levels at either end (as would be expected for low and high frequencies).
A timeline tween on each coloured light movie clip creates the fading light effect instead of a simple on/off, and mouse-ing over one of the columns momentarily sets the volume to full.

source

Design by @RobFarnell

Leave a Reply