Category Archives: Actionscript

How To Install Red5 on OSX

Red5 Media Server is one of my favourite open source tools, but setting it up on a mac can be difficult. Here’s the process that works for me. 1. Download Red5 (be sure to get the ZIP form, not the DMG!) 2. Unzip and place in Applications directory 3. Open Terminal, navigate to your red5 [...]

Also posted in Advanced, Tutorials | Leave a comment

Flash Talks to Arduino

There are many instances where interacting with a computer via keyboard and mouse just doesn’t cut it. The Arduino is a mini-computer that can be used to take inputs from things like light and motion sensors, ultrasonic range detectors, touch sensors etc, and stream that data out to a computer that visualizes it using Flash. [...]

Also posted in Advanced, Tutorials | Tagged , | Leave a comment

Actionscript Classes Pt. 4

In this version, you can click on “space DNA” to analyze it and search for new forms of life. If you find a new species you are asked to name it, then continue on your merry way.  Next it will need some obstacles to avoid.

Also posted in Advanced, Tutorials | Tagged , | Leave a comment

Visualization of Sound

In actionscript 3, the new ComputeSpectrum method allows us to take a “snapshot” of the sound being played at a given time, and analyze its volume at different frequencies. This data is stored numerically in an array. We can then have flash visualize the sound by having it draw shapes based on the values in [...]

Also posted in Intermediate, Tutorials | Tagged | Leave a comment

Dragging and Dropping Objects

Display objects such as Sprites and MovieClips can be moved around by a user using the built-in methods “startDrag” and “stopDrag“. Here is the code for the example above:

Also posted in Intermediate, Tutorials | Tagged , | Leave a comment

Actionscript Classes Pt. 3

If you take a look at the Main.as source file for this version of the example it should be evident how using classes can be kind of like building with Lego. We can snap together different specialized pieces to build something unique. In this case, we have:

Also posted in Intermediate, Tutorials | Tagged , , , | Leave a comment