New Fubra World (Flash + Isometric)

Over the past few months I have been working alongside Nick to produce a more exciting presentation of the sites owned and operated by Fubra Limited, in the form of Fubra World.

We first saw a glimpse of Fubra World at the end of 2007, after Nick put together a simple flash animation of a small town that he had sketched and added some interaction to.

At the end of 2008 it was decided that we would give it a bit of a facelift. The process involved nick re-drawing the town in isometric and myself learning ActionScript 3 to allow for a more interactive presentation. Continue reading “New Fubra World (Flash + Isometric)”

AS3: Stop all sounds from playing

If you ever need to stop all the sounds playing in flash using ActionScript3, you can do so using the following method.

First include the SoundMixer class:

import flash.media.SoundMixer;

Then to stop the sounds call the stopAll method:

SoundMixer.stopAll();

Flash AS3: Play sound from the library

In order to play a sound from the library you can use the following simple AS3 code:

var snd:Beep = new Beep();
snd.play();

You must also assign your sound clip a class name by right clicking the sound in the library and checking the export for ActionScript option. In the example above the class name was set to “Beep”.

The default base class  is set to “Sound”, allowing inheritance of methods from the Sound Class.