Archive for April, 2008

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
22Apr

Dragging a Particle with APE - Part II

7 comments so far

12/03/2008 - This has been updated.. please visit http://manewc.com/2008/04/22/dragging-a-particle-with-ape-part-ii/
With a slight modification from yesterday’s code I was able to reset the position of the CircleParticle when releasing the object.


Here is the revised code:

package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import fl.controls.Button;
import org.cove.ape.*;

public [...]

21Apr

Dragging a Particle Object with APE

1 comment so far

Here I have created a circle particle that can be dragged. The issue is what to do when the MOUSE_UP event is called as the circle particle goes back to it’s final position. We’ll work on that in the future.


Here is the Main.as Document Class file:

package {
import [...]

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
17Apr

BlurFilter Animation

No comments

A simple demonstration that animates a blur filter.


Here is the main document class:

package
{
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import fl.controls.Button;
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;

public class Main extends Sprite
{
private var ai:Image;

private var bmd:BitmapData = new BitmapData(550, 400, true, 0xffffff); // this will cover the [...]