Sound spectrum inside display container

how can i draw sound specrum inside a display container other than stage?I tried to display it inside the rectangle movieclip but end up in failure.
I hv used the following code to generate the soundspectrum

var s:Sound=new Sound();
s.load(new URLRequest(“0179 - Abba - Dancing Queen.mp3”));
s.play();
var bytAr:ByteArray=new ByteArray();

addEventListener(Event.ENTER_FRAME,func);
graphics.clear();
graphics.beginFill(0x211845);
SoundMixer.computeSpectrum(bytAr);
for (var i:uint=0; i<256; i++)
{
var num:Number=bytAr.readFloat()200+100;
//graphics.moveTo(300,50);
graphics.lineTo(i
5,num2);
graphics.lineStyle(1,0x21184
i );
}

graphics.lineTo(762,500);
graphics.lineTo(0,500);
graphics.lineTo(-1,150);
}