Category

Archive for the 'Actionscript' Category

The ultimate AS2 BitmapData saving solution

( News and Remoting and Actionscript and PHP )

First of all, sorry for the over-the-top title, it’s a nod to Grant Skinner, whose BitmapData saving post inspired me to get back to the drawing board to find a better solution than what I had previously. The previous solution was very fast in an intranet setting, and very low on resources on the php […]

Windows Vista Ctrl+Tab 3d effect: source code

I have to give a presentation tomorrow on the new features in Flash 8, so instead of boring people to death with talk about filters, I figured I’d do a few demos to showcase some of the possibilities of BitmapData. For this one, I used DistortImage and Fuse to recreate the Ctrl+Tab 3d window effect […]

Interpolating points using piecewise cubic beziers: source code

First off, before I go on with the explanation, here is the demo. The demo generates several points which are joined together with curves. The points can be animated by using the animate button, which makes them start a random walk (x, y += (Math.random() - 0.5)*2). You can add or delete points using the […]

Fuse, DisplacementMapFilter and envelope distortion: a further experiment

Building on the last experiment, here is the same kind of transition, this time with envelope distortion, that warps a rectangle into an inward curved “thing”; it looks as though is it being pinched, while the 4 corners stay put. Here’s the source. The function to generate the displacement map is simple enough:

function createPinchMap(width, height) {   […]

Fuse, DisplacementMapFilter and perspective: an experiment

The Fuse animation kit makes it easy not only to animate objects but also filter properties. Changing a blur filter’s strength in a smooth manner is as simple as telling an object to go from point A to point B.

One of the most underused filters in Flash 8 is the DisplacementMapFilter. With some imagination […]