Category Archives: Intermediate

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 Actionscript, 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 Actionscript, 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 Actionscript, Tutorials | Tagged , , , | Leave a comment

Actionscript Classes Pt. 2

Building upon the idea of the document class we made in Actionscript Classes and Packages Pt. 1, we will add another class to create an animated star field.

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

Actionscript Classes Pt. 1

What is a class? In programming terms a class is a group of code that handles a specific body of tasks and information. The purpose of a class is to ultimately to provide efficient and reusable code. Using classes can also simplify your code by tucking away the nitty gritty details so you can focus [...]

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

As3 Filters and FX

Filters can only be applied to display objects like movie clips and sprites. Filters are applied to an object like such:

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