Symbol instances naming tool
I shall describe the work with this tool in details.
So, we shall put several components into the new document.

We select everything and call up the command. We see the following interface:

On the right there is a list of names which are supposed by default. The name in the library is used and formatted in the needed way, and the prefix is put under.
If you do not like the names, the simplest way is to correct them directly in the list.
We push the button "OK" – the tool is closed and all components are named.
In this case each element is unique; and what to do if we shall place the same symbol several times? Let's cancel the command execution and place the second button. We select and call up the command, then we see such list of names which is supposed by default:
button1_mc
textInput_mc
numericStepper_mc
list_mc
comboBox_mc
button2_mc
dataGrid_mc
As you can see from this list, now the buttons have numbers – the meta language symbol started to work - [c:?].
It puts under the numbers, if there are some copies of the same library element.
Now we shall look at the input field of expressions: 
This expression means: the name in the library, plus the counter (if there is a necessity in it), plus the suffix.
The input field of expressions contains a list of ready templates which can be met most often: 
Certainly, you can enter the expressions manually, the list of ready templates just simplifies the work.
Above the input fields of expressions there is a brief description of the meta language. We shall talk about its symbols.
[N] - current title of the copy. It is convenient to use it when the copies are already named. For example, if you need to remake your old source file or the source file of your colleague.
[ N: regexp] - to find and to replace something in the title using regular expression.
The expression has a standard view: /old/new/modifier. For example, to remove all excretions: [n: / _ +/g]. Do not forget about modifiers - g (global search) and i (not depending on the register) or gi (both).
[L] – the name of the element in the library. Now I have a good practice to name library symbols thinking about the fact that in the future the name will become the title of the copy. While using of this modifier, the names in the library are slightly renewed - «My new symbol» will be used as "myNewSymbol", so there is no need to write the names in the library without gaps.
[ L: regexp] - work with the library name with the help of the regular expression.
Similarly [N: regexp].
[C] – a counter. It has three versions - mandatory, mandatory with the template, and optional.
[C] – a mandatory counter. By default it starts with one. It is assigned to all named copies.
[ C:?] - the counter is not used, if there is only one copy of the library symbol among the named ones. It is convenient when you do not want to accidentally name the elements equally.
[ C:001] - if to name the elements, it is preferred to do it fine. In this expression it is possible to point out the quantity of the digits in the number and the start number. For example, the expression [C:006] means that it is necessary to start from the sixth one and the number should have three digits.
[S] – the suffix. « _ mc » - movie clip, « _ btn » - button, « _ txt » - text box.
The latest and the simplest meta symbol is an ordinary text. It is written between meta symbols or without them.
The symbols do not depend on the register and the gaps are ignored in the expression.
And once again – let us talk about usage of this tool.
Select the renamed elements. Using the expression, create a list of names. If it is necessary, change the list manually and click the button "OK".
|