Category Archives: Flash

Dynamic Mask And Image Comparison Part 2

This movie requires Flash Player 10 swfobject.embedSWF("/blog/wp-content/uploads/2011/01/DynamicMask.swf", "swf20841", "505", "500", "10.0.0", "", {}, {wmode: "window", menu: "false", quality: "high", bgcolor: "#000000"}, {}); This is part 2 of a example regarding image comparison, view part 1 here. GOAL Allow a user to click-and-drag to reveal a hidden image by painting a mask. Predetermine the shape of the image the user is [...]
Also posted in AS3 | Tagged , , , , , , , , , , | 1 Comment

Dynamic Mask And Image Comparison Part 1

This is Part 1 of a tutorial/example regarding image comparison. To be more specific, we’ll be determining the differences in channel data using BitmapData.histogram(); In Part 2, you’ll see the end result which is: A user can click-and-drag to dynamically ‘paint’ a mask over an image. As the user paints, more of that hidden image appears. [...]
Also posted in AS3 | Tagged , , , , , | 1 Comment

XML “Compression” Tip

Maybe this is more common than I realize; I’m working on a Web project where the initial XML file is 420kb in size—that’s just way too big. I searched for various XML compression utilities, but a few seemed overcomplicated and many of the utilities don’t work on a Mac. In the past, I’ve imported PNG [...]
Also posted in AS3 | Tagged , , , , , | 4 Comments

Sketches and Math

I am a visual learner. This fact has made it challenging for me, and other designers, to pick up development whether it be ActionScript, JavaScript, CSS, or any language or mark up that results in a visual interactive interface. This right brain mentality is arguably why so many graphic and web designers stopped adopting ActionScript [...]
Posted in Flash | Tagged , , | Leave a comment

Generative Visuals

In the last few months I’ve played with creating a number of generative visuals or generative visual interactives. This entails building a Flash application that contains a number of randomized visual creations but also allows me to have control over color, composition, and some drawing aspects. I’ve spread a few of these visuals around and [...]
Also posted in AS3 | Tagged , , , , , , | 4 Comments

Salt & Pepper Utilizing BitmapData.fillRect();

This movie requires Flash Player 10 swfobject.embedSWF("/blog/wp-content/uploads/2010/01/bitmapData_fillRect_animation.swf", "swf20842", "500", "448", "10.0.0", "", {}, {wmode: "window", menu: "false", quality: "high", bgcolor: "#000000"}, {}); I’ve had some time to experiment more with BitmapData and specifically the fillRect(); method. I hope to utilize some of this soon when creating a new site for myself. Below is another example showing how [...]
Also posted in AS3 | Tagged , , , , , , , , | 6 Comments

Simple AS3 Parallax System Engine

This movie requires Flash Player 10 swfobject.embedSWF("http://www.lextalkington.com/blog/wp-content/uploads/2009/12/parallax.swf", "swf20844", "500", "570", "10.0.0", "", {}, {wmode: "window", menu: "false", quality: "high", bgcolor: "#000000"}, {}); A recent project required me to set up a parallax system, of which I’ve done a hundred times probably, starting with AS1. However, I’d never built a class to handle this rather simple functionality. With [...]
Also posted in AS3 | Tagged , , , , , , , | 24 Comments

Generate Points Around a Circle’s Circumference

This movie requires Flash Player 10 swfobject.embedSWF("/blog/wp-content/uploads/2009/12/CircumferencePointGenerator.swf", "swf20845", "500", "500", "10.0.0", "", {}, {wmode: "window", menu: "false", quality: "high", bgcolor: "#000000"}, {}); This is a simple Class, yet comes in handy for many projects. I’ve added a few extra parameters beyond only placing x amount of points around the circumference of a circle. This is a static [...]
Also posted in AS3 | Tagged , , , , , | 7 Comments

Auto Pan Class For Panning An Image On Mouse Movement

This movie requires Flash Player 10 swfobject.embedSWF("/blog/wp-content/uploads/2009/08/AutoPan1.swf", "swf20846", "540", "540", "10.0.0", "", {}, {wmode: "window", menu: "false", quality: "high", bgcolor: "#000000"}, {}); I created an AS2 version of this years ago, and shared it on kirupa.com. It was a very popular small class. So, I’ve rebuilt the class in AS3. I hope some people find it useful. [...]
Also posted in AS3 | Tagged , , , | 16 Comments

Listening To Web Traffic

Traffic, in the traditional sense, is annoying. I live on a somewhat busy street, outside my office window it is the same monotonous motoring sound all day. This annoyance gave me an idea: I’m playing with my new interest in the Google Analytics export data API and trying to get Flash to respond to the [...]
Also posted in AS3 | Tagged , , , , | Leave a comment