Archive for April, 2008
Flash MP3 Player - Progress 1
1 comment so farSo 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 [...]
Dragging a Particle with APE - Part II
7 comments so far12/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 [...]
Dragging a Particle Object with APE
1 comment so farHere 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 [...]
Sound Spectrum Analyzer - Part II
No commentsSo, 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 [...]
BlurFilter Animation
No commentsA 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 [...]