I've been looking for code for positioning the spectrum into the center of the flash screen, but unable to find it. I'm using the code below:
SoundMixer.computeSpectrum(liveBytes, false, 0);
var g:Graphics = this.graphics;
g.clear();
g.lineStyle(10, 0x000000);
g.beginFill(0x6600CC, 10);
for (var i:int = 0; i < 150; i++) {
drawSpectrum(liveBytes.readFloat() * 4, i);
}
the spectrum is displaying below the center of the screen(about 75% from top).