An old Photoshop technique modified for Flash… Import an image, convert it to a movie clip named “image_mc” and give this script a whirl:
[AS]import flash.display.;
import flash.filters.;
//
// make a copy of the image mc
var imgCopy_bmp:BitmapData = new BitmapData(image_mc._width, image_mc._height);
imgCopy_bmp.draw(image_mc);
//
// make a copy of the copy which will be inverted and blurred
var blur_bmp:BitmapData = new BitmapData(imgCopy_bmp.width, imgCopy_bmp.height);
blur_bmp.draw(imgCopy_bmp);
//
// attach the bitmap copies to movie clips
var imgCopy_mc:MovieClip = image_mc._parent.createEmptyMovieClip(“cmc”, image_mc._parent.getNextHighestDepth());
imgCopy_mc._x = image_mc._x;
imgCopy_mc._y = image_mc._y;
imgCopy_mc.attachBitmap(imgCopy_bmp, 0);
//
var traced_mc:MovieClip = image_mc._parent.createEmptyMovieClip(“tmc”, image_mc._parent.getNextHighestDepth());
traced_mc._x = image_mc._x;
traced_mc._y = image_mc._y;
traced_mc.attachBitmap(blur_bmp, 0);
//
// invert and blur the top mc - blur value of 7 with low quality looks pretty good
traced_mc.filters = [new ColorMatrixFilter([-1, 0, 0, 0, 255, 0, -1, 0, 0, 255, 0, 0, -1, 0, 255, 0, 0, 0, 1, 0]), new BlurFilter(7, 7, 1)];
//
// set the blend mode of the blurred mc to “add”
//(in Photoshop, colordodge works best, but there is no colordodge mode in Flash, yet)
traced_mc.blendMode = 8;[/AS]
here’s a quick example. (about 160k with no preloader)
Can’t think of a good use, but it’s fun Flashturbation…