Recently we had the problem to change the embed setting of tons of textfields instances inside of at least a gazillion MovieClips. We got the FLA-file from a designer (we maybe haven’t briefed enough… :) ) and wanted to use them in a lib swc for a AS3-only project. So we started to change them “by foot”, internship work, damn it!
Finally we came up with the idea to write a jsfl script which does the job.
Copy the file inside the command folder here:
Mac: /[user]/Library/Application Support/Adobe/Flash CS3/en/Configuration/
Windows: \Documents and Settings<username>\Local Settings\Application Data\Adobe\Flash CS3\language\Configuration\
How to use:
Create a dummy TextField on the timeline and set it to the embed setting you want to apply to all TextField instances of all MovieClip timelines inside the library. Make sure that this TextField has the same font name as the TextFields you want to apply the setting to. Select this TextField and run the script by clicking “Change TextField Embed Setting” inside the Command menu of Flash.
The script now opens every MovieClip of the library and searches for TextField instances. If found and the font matched with the previously created dummy TextField, the new embed setting will be copied.
Note: The script only works with MovieClip library items and TextField of the type “dynamic” or “input”. Only the embed settings of the dummy TextField will be applied, all other properties will be ignored.