Archive for June, 2008
Image Gallery - Part II - The Large Image
No commentsSo, 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 [...]
Image Gallery - Part I - The Scrolling Menu
4 comments so farSo 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 [...]
Simple Video Player
No commentsSo 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 [...]
Erasing All Items in an Array with Slice Method
No commentsBecause 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 [...]
Blur Animation with Scroll Method
No commentsIf 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 [...]