SoundSpectrum

Kind of class: public class
Package:
Inherits from:
  • Sprite
Version: 7 Mar 2010
Author: John Polacek, john@johnpolacek.com
Classpath: com.johnpolacek.media.SoundSpectrum
File last modified: Thursday, 24 February 2011, 22:09:57
Sound spectrum visualizer animated within a rectangle container.
Example
  • import com.johnpolacek.media.SoundSpectrum;
    var soundSpectrum = new SoundSpectrum(400, 100, 0x333333, 1, 0x999999, .1);
    addChild(soundSpectrum);
    soundSpectrum.activate();
    

Summary

Constructor
  • SoundSpectrum (w:Number, h:Number, bc:uint = 0x999999, ba:Number = 1, fc:uint = 0x666666, fa:Number = 1)
Instance properties
Instance methods

Constructor

SoundSpectrum

function SoundSpectrum(w:Number, h:Number, bc:uint = 0x999999, ba:Number = 1, fc:uint = 0x666666, fa:Number = 1)
Parameters
 

Instance properties

backgroundAlpha

backgroundAlpha:Number(read,write)

Background alpha of rectangle container shape

backgroundColor

backgroundColor:uint(read,write)

Background color of rectangle container shape

fillAlpha

fillAlpha:Number(read,write)

Fill alpha of spectrum

fillColor

fillColor:uint(read,write)

Fill color of spectrum

spectrumHeight

spectrumHeight:Number(read,write)

Height of the spectrum container rectangle

spectrumWidth

spectrumWidth:Number(read,write)

Width of the spectrum container rectangle

Instance methods

activate

function activate() : void

Starts animation

deactivate

function deactivate() : void

Ends animation