Archive for August 16th, 2007

16
Aug

Displaying sound data using the SoundMixer.computeSpectrum() 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’

16
Aug

Adding icons to a Flex TabNavigator control

I was trying to figure out how to add icons to a TabNavigator control today and ended up making this. The trick is that you actually add the icon on the TabNavigator control’s child containers and not on the TabNavigator itself. The example also has three tabs which each look at a different filtered view of an XML document (filtered using E4X).

Full code after the jump.

Continue reading ‘Adding icons to a Flex TabNavigator control’

16
Aug

Using HTTPService tag to send/receive variables to a server-side script

The following example demonstrates a very simple usage of sending parameters from Flex to a server-side script (written in ColdFusion) and then displaying the server response in our Flex application. The server-side script is a simple echo/”Hello world” type script, but it accepts URL or FORM variables, so you can send using the GET or POST HTTP-method.

It’s a pretty basic/crude example, but maybe it helps somebody out there.

Full code after the jump.

Continue reading ‘Using HTTPService tag to send/receive variables to a server-side script’

16
Aug

Styling a ComboBox control’s dropdown menu

Here is a basic example of formatting the Flex ComboBox control’s dropdown menu using Cascading Style Sheets (CSS). In this example we create a 3 pixel drop shadow on the right of the dropdown menu, as well as round each of the corners on the drop down by 5 pixels.

Full code after the jump.

Continue reading ‘Styling a ComboBox control’s dropdown menu’