New Flash Extension: Swap Instance for Duplicate Symbol
This extension adds a command that will take a selected symbol instance, create a new duplicate in the library, and swap the selected symbol for the newly created duplicate.
I use this command when I want to make a symbol that’s very similar to one that I’ve already got on stage. So if I have a button on stage with text inside it and I want another one exactly like it but with different text, I drag a copy using the opt key (alt on Windows), then I run this command. The command prompts me for a new name, I type it, hit OK, and now I’ve got a duplicated symbol that I can go in and edit without affecting the original.
I’ve also added a feature to replace the name if it contains the name of the original symbol. So, say your original symbol is called back and your original instance is called back_mc, if you name your new symbol next it will update the name of the new instance to next_mc. Otherwise, the original instance name (or lack thereof) will be kept.
UPDATE (9/21/09): DaveW correctly pointed out on the CHF forum that this command largely duplicates functionality that is built into Flash with right-click > Duplicate Symbol. It doesn’t do anything with the instance name, but that’s not a huge difference. In the future I may add something to make this extension more unique, if I find it’s helpful. Feel free to post ideas in the comments section.
Download
(compatibility: Flash MX 2004 and up)
Swap Instance for Duplicate Symbol.mxp





Well, one problem that comes with duplicating symbols this way in Flash, is that if the symbol has a classic tween applied to it, then it’s necessary to swap out the symbol to the duplicate for every keyframe in the tween
Comment by James Lee — October 14, 2009 @ 10:39 am
That’s true, James. Then the question becomes, do you want to replace every instance of the symbol in the FLA, or just selected keyframes?
Both are possible with JSFL.
Comment by Justin — October 19, 2009 @ 4:13 pm
In my case, usually just the selected keyframes (or every keyframe in that tween). I use this technique if I need to have a bunch of symbols that are very similar, with slight differences (eg: crowds of people etc)
Comment by James Lee — October 19, 2009 @ 11:20 pm