Archive for June, 2008

23Jun

Image Gallery - Part II - The Large Image

No comments

So, at this point we have the scrolling menu with our thumbnail images and now I have added an event listener so when the user clicks the thumbnail it will display the related larger image. Please note that at the moment I don’t have the large images for all the thumbnails, that is why a [...]

20Jun

Image Gallery - Part I - The Scrolling Menu

4 comments so far

So for my image gallery project I wrote up some classes that will generate a scrolling menu and center the menu at the bottom of my page. I have made it so the menu will accept variable widths of images (I honestly haven’t tested this, but I am 98% confident it will work), but a [...]

19Jun

Simple Video Player

No comments

So I want to get down the basics of creating a video player and found this code over at adobe. This will just simply pull in an .flv file and automatically play, nothing too glamorous, but will be a good foundation for when I start a project on creating a full player. [ code pulled [...]

Categories: Actionscript 3, Video
18Jun

Erasing All Items in an Array with Slice Method

No comments

Because I occasionally build arrays with the push method, there was an occurrence where I need to wipe it out entirely. I was able to do so with the Slice Method. It is simply:
myArray.slice ( 0 );
The parameter of 0 will wipe out all items after the first element of your array. It will accept [...]

Categories: Actionscript 3, Arrays
17Jun

Blur Animation with Scroll Method

No comments

If you edit the Scroll method parameters you can easily change the horizontal and vertical direction of the blur from the image.

package
{
import flash.display.Sprite;
import flash.display.Loader;
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.net.URLRequest;
import flash.events.Event;

public class BlurAnimation extends Sprite
{
private var sp:Sprite;
private var bmd:BitmapData = new [...]