Actionscript 3 - Sound Spectrum


One of the cool features in AS3 is the ability to take snapshots of the sound wave as your sound is playing, allowing you to do crazy animations that match your sound.

 

So I decided to make a little experiment using it. Click on the preview below to see how it works (it will take you to a new page).

 

Frog Sound Spectrum Snapshot

 

By the way, it was meant to be a frog, eventhough it looks nothing like a frog. ;p

 

The title of the song used is “Teluk Bayur”, which means “Bayur Bay” by an Indonesian singer “Rani” (Note: Rani is not the original singer of the song. I hope I won’t get sued for putting it up. After all it is kind of a promotion. ;p). The song tells a story about someone leaving his/her hometown to learn and acquire new knowledge for a better tomorrow, just like me. So I guess it is a dedication to everyone like me, and a reminder for me not to let my mom and dad down. ;p

 

The coolest looking sound spectrum experiment I have seen is the one done by Andre Michelle, which is also the one that inspires me to write this one.

 

Add comment

Flex 2 Sample - Flag IQ


Flag IQ is a simple Flex 2 quiz application to test your knowledge of national flags around the world.

 

This simple application is a good example for people who are new to Flex 2 since it utilizes some of the most basic, yet essential part in understanding Flex 2 such as:

1. Data Binding

2. E4X

3. FlashVars

4. States

 

Here is a preview of the application:

 


 

Right click and choose “View Source” to download the source code.

 

Drop me a line or two if you find this useful.

 

Credit for the nice images: http://www.famfamfam.com

 

Add comment

Using FlashVars in Flex 2


Jumping from Flash to Flex for the first time can be quite confusing.

 

A big part of it is the structure difference between Flash and Flex, as such, even stuff like using FlashVars that Flash Developer use on a daily basis can be quite a challenge when using Flex.

 

Here, I am going to share a very basic code of how to use FlashVars in Flex.

 

I hope somebody will find it useful.

 

Click here to download.

 

Add comment