The following example shows how you can use the static captureImage() method in the mx.graphics.ImageSnapshot class to take a screenshot of an item on the display list, convert it into a ByteArray, and display the ByteArray using a SWFLoader control.
Full code after the jump.
Continue reading ‘Taking screenshots in Flex 3 using the ImageSnapshot.captureImage() method’
The following example looks at making a simple spectrum analyzer app using the drawing API and the SoundMixer.computeSpectrum() method. This is basically a revised version of the example I did on my other blog last year, the poorly named “SoundMixer.computeSpectrum()” entry.
I’ve updated the code somewhat to make it a bit prettier. You can find more information on the SoundMixer class and the computeSpectrum() method in the Adobe Flash CS3 documentation “Accessing raw sound data” in the Programming ActionScript 3.0 book.
Continue reading ‘Displaying sound data using the SoundMixer.computeSpectrum() method’