24Jun

Image Gallery - Part III - Categories

2 comments so far

So, a little more functionality to our Image Gallery project - I just wanted to add more functionality by allowing the user to toggle between different sets of Image Galleries. For this example you can toggle between 2 galleries by hitting ‘1′ or ‘2′ on your keyboard.


I made some slight modifications [...]

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

1 comment 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 [...]

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 [...]

19May

BitmapData Noise

No comments

Add some BitmapData noise to your Bitmap.

package
{
import flash.display.Sprite;
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.display.BitmapDataChannel;

public class BitmapDataNoise extends Sprite
{
var bmd:BitmapData = new BitmapData(stage.stageWidth, stage.stageHeight);

public function BitmapDataNoise()
{
var noiserate:int = int(Math.random() * int.MAX_VALUE);
bmd.noise(noiserate, 0, 0xFF, BitmapDataChannel.RED, false);

var bitmap:Bitmap = new Bitmap(bmd);
addChild(bitmap);
}
}
}

a2a_linkname=”BitmapData Noise”;
a2a_linkurl=”http://manewc.com/2008/05/19/bitmapdata-noise/”;
a2a_color_main=”D7E5ED”;a2a_color_border=”AECADB”;a2a_color_link_text=”333333″;a2a_color_link_text_hover=”333333″;
[...]