Archive for July, 2008

Replace Document Fonts in Flash

Friday, July 25th, 2008

I’ve been working on this project at work where I’m having to manage a lot of Flash documents. To help me automate some of the tasks, I’ve been learning to write JSFL scripts (Flash Javascript).  I always found it super annoying to replace fonts globally in Flash. I invariably find myself having to drill into the movie clips on the stage and in the library. This got even more cumbersome as the complexity of the document got bigger.

For our project we’re using a runtime shared library for fonts. I recently wanted to rename the shared font symbols but wasn’t excited about manually replacing the style. This JSFL script makes finding and replacing fonts super easy. It searches the document for all text files (input, dynamic and static) and asks if you want to replace the font style. It supports replacing the font face, bold, italic and size attributes.

Here’s a link to the SVN repository. There is also a batch script that will install the file on a Windows machine. If you’re on a Mac computer, copy the JSFL file into:  <drive>/Users/<username>/Library/Application Support/Adobe:Flash CS3/<lang>/Configuration/Commands . For Windows it’s: C:\Document and Settings\<username>\Local Settings\Application Data\Adobe\Flash CS3\<lang>\Configuration\Commands\

July Cape Cod Trip

Thursday, July 17th, 2008