Return to Snippet

Revision: 13935
at May 13, 2009 11:03 by forchid


Initial Code
var promptVal = prompt("Allow Smoothing? (1=Yes, 0=No)", "1");
var theLibrary = fl.getDocumentDOM().library;
var selectedItems = theLibrary.getSelectedItems();

fl.outputPanel.clear();

for(var itemIndex=0; itemIndex < selectedItems.length; itemIndex++){
var theItem = selectedItems[itemIndex];
theItem.allowSmoothing = (promptVal=="1") ? (true) : (false);
var itemName = theItem.name;

var enableDisable = (promptVal=="1") ? ("Enable") : ("Disable");
var outputString = enableDisable + " smoothing on: " + itemName;
fl.outputPanel.trace(outputString);
}

fl.outputPanel.trace("Smoothing Complete!");

Initial URL

                                

Initial Description

                                

Initial Title
Script to Control Smoothing for Selected library assets in Flash IDE

Initial Tags
image, script, flash

Initial Language
Other