08Aug

APE Project - Step 4 - Adding a Car

No comments

So I pulled a Car class from an older project of mine and decided to integrate it into my project here…. gotta love the ease of integration of classes with Actionscript 3! I also added in some walls to the left and right side to prevent the car and balls to move outside of the [...]

25Jul

Actionscript 3 Method to Stop All Sounds within Flash Player

1 comment so far

So I have some audio playing on one of my pages within my Flash movie, but I wanted it to stop playing when the user travels away from the audio page. I know in Actionscript 1 and possibly Actionscript 2 the stopAllSounds() method was available. I soon discovered that in Actionscript 3 you can [...]

Categories: Actionscript 3, Audio
02May

Sound.length -> Measuring the time length of a sound object

No comments

For one of my projects I encountered an issue where I was unable to retrieve how long my sound object was. I needed to know how long the song that was loaded was in order to display a playing progress bar. I found out that because of the way I was instantiating my variables, this [...]

Categories: Actionscript 3, Audio
23Apr

Flash MP3 Player - Progress 1

1 comment so far

So I have re-written my flash player to Actionscript 3 from Actionscript 2. The functionality is that there are two movies that will control the player. One movie that actually plays the music and another movie that controls it. This is so the music will not stop playing as the user travels from one html [...]

Categories: Actionscript 3, Audio
18Apr

Sound Spectrum Analyzer - Part II

No comments

So, with some base code from gotoandlearn.com I wanted to play around a little more with the sound spectrum.


Here is the main document class:

package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.filters.BitmapFilter;
import flash.filters.BitmapFilterQuality;
import flash.filters.GlowFilter;
import flash.filters.BlurFilter;
import flash.geom.Point;
import flash.media.Sound;
import flash.media.SoundChannel;
import flash.utils.ByteArray;
import flash.media.SoundMixer;
import flash.net.URLRequest;
import flash.system.ApplicationDomain;
import fl.controls.Button;

public class Main [...]

Categories: Actionscript 3, Audio