Mass renaming linkages in a FLA
I have an AS3 based FLA that, for various reasons, needs nearly all of the linkages in the library reworked (need to move to a different package namespace). This particular FLA is pretty big, so doing this by hand would be rather tedious.
What is the best way to handle this?
I have considered saving out the FLA as an XFL, and just hand editing all of the XML files in the LIBRARY
folder, and then saving out as FLA. Has anyone tried this? I have never worked with XFL files before, so I don't know what quirks I may run across.
Are there any existing JSFL scripts that handle this?
Thanks.
EDIT:
My problem has to do with loading SWFs and class conflicts because of multiple SWFs using the same package namespace. Without getting into too many details, I know about ApplicationDomain and LoaderContext. I am currently loading into a new ApplicationDomain, but that isn't an ideal situation and is causing grief that won't be maintainable in the long run.
I don't have access to Flash IDE today but you can easily adapt my script to do what you want : Automated importing/renaming of Flash assets renaming-of-flash-assets/6031965#6031965
There is an easy way to find what Jsfl functions you have to use :
- Open History panel (Window > Other Panels > History)
- Make one linkage renaming
- Copy history to jsfl and adapt code
精彩评论