Flash productivity tools: Name it right (4)

, under JSFL.

flash commandsIt is important to have very clean and well-organized .fla files when you work in a team. At MediaMonks, we have naming guidelines which should be used by all monks.

This tool is made to easily assign or change the class of a MovieClip, and uses our naming standards for the linkage names (which is filename dot SymbolName). It also gives you the option to change the instance name over the full timeline and fixes the layer name. The tool has a class-dropdown, pre-filled with Temple-classes, and the classes that are already linked to library symbols in your current document.

» Download : Name it right.JSFL

Name it right explanation

I use this panel as complete replacement of the symbol properties window, since it is smarter and less annoying.

Find all my JSFL tools on Github.

4 responses to “Flash productivity tools: Name it right”

  1. Rich says:

    Does this work in Flash CC?

  2. Mark Knol says:

    I’m sorry to say, but I have no idea if it works in CC, since I dont’t have (tested) it..

  3. Tom Keen says:

    Greetings Mark,

    For the most part your JSFL Tools work fine in Flash CC. I did however need to fix some path issues.

    There is a slight variance in how fl.configURI returns across different versions of Flash… sometimes the returned string ends with / and sometimes (other Flash versions) it doesn’t. Flash Pro CC on Mac does return with the ending /, which breaks your paths for storing your temp XML files (your constructed path ends up like this: //Commands/).

    For a consistent and cross-platform solution, I always validate the URI from fl.configURI to make sure it DOES end with a / and then start appended paths without.

    Example Fix from [mm] Duplicate advanced.jsfl (start line 245):

    var localConfigURI = fl.configURI;
    // Verify that the provided path ends with ‘/’
    if (localConfigURI.charAt(localConfigURI.length – 1) != “/”) {
    localConfigURI = localConfigURI + “/”;

    var url = localConfigURI + ‘Commands/temp-dialog-‘ + parseInt(Math.random() * 777 * 777) + ‘.xml’;

    Thanks =)

  4. Mark Knol says:

    Thanks Tom, will fix this in repo soon!

Say something interesting

Please link to code from an external resource, like gist.github.com.