JSFL :: traceBitmap
Submitted by hasan on Wed, 07/05/2006 - 07:00.
Download a ZIP for easy installation of this command here.
This one is courtesy of my buddy Brent Arnold. It saves you a butt-load of time when you need to vectorize a ton of bitmaps in your Flash app. Instead of running Trace Bitmap over and over manually, this nifty little script will knock it out for you really quick. Nice one Brent :)
/*
* JSFL traceBitmap
* Author: Brent Arnold
* www.tutorialsbyibrent.com
* Version: 1.0
* July 4, 2006
*/
var color = prompt("Color Threshold - ", "20");
var area = prompt("Minimum Area - ", "2");
var curve = prompt("Curve Fit - ", "Normal");
var corner = prompt("Corner Threshold - ", "Normal");
for (var i = 0; i < fl.getDocumentDOM().getTimeline().layers[0].frames.length; i++) {
fl.getDocumentDOM().getTimeline().currentFrame = i;
fl.getDocumentDOM().selectAll();
fl.getDocumentDOM().traceBitmap(eval(color), eval(area), curve, corner);
fl.getDocumentDOM().selectNone();
}
alert("traceBitmap completed");Download a ZIP for easy installation of this command here.


