Crerate sound spectrum

Hi,
I am very new to Flash and AS programming. I am doing a work which contains a sound spectrum display. I am trying to do it in AS2 or in AS3. In as 3 there is a method called computeSpectrum which will display the current second spectrum, not the full display. How can I display the full song spectrum in a single page while the music playing?

Is it possible, can anyone plz send the code or the idea to do this. (in AS2 or in AS3)

Thankz and Regards,

Joby