AS3 – Draggable Parallax Class

Parallax(target:MovieClip, containmentClip:Sprite, scrollVar:Number, xtrue:Boolean, ytrue:Boolean, draggable:Boolean):void
 
DraggableParallax.as
 
A basic Actionscript 3 parallax class made up for a project with a swap depth feature added on after. This class allows for MovieClip to be assigned as draggable if needed, scrolling on either the X, Y or both axis. I added the containmentClip so that depth swaps could be managed between certain display objects simply by adding them to a container sprite. Depths change on rollover but the class is bare bones so can be easily pulled apart to fit other needs. The original requirement was to not to use Greensock hence the simple easing function used.
Read more…

Posted in Source Code | Leave a comment

Flickr Tool

Flickr Tool Screenshot

A late night programming exercise – I wanted to play with Flickr’s API and the newly arrived, at the time, bitmap data object in Actionscript 2.

 

This tool lets you crop images and adjust some of the visual aspects of photos (saturation, hue, brightness etc…) from flickr without having to save them or use anything other than your web browser. It uses Kevin Luck’s wonderfully timesaving Flickr API wrapper Flashr and partially implements Mario Klingemann’s colormatrix.

Read more…

Posted in Apps | Tagged , , , , | Leave a comment