Package and Classes reorganization - import paths replacement horror
How your project grows, you are becoming aware that your starting package/class organization isn’t the best one and when you decide to change package organization you are facing fact that you have to open every single .as file and to manually replace import class path.
Same thing when you decide to change name of some class or method. Newer Visual Studios (like 2005 and 2008) have automatic replacment tool that sometimes can do great job, sometimes it replaces some property names just because you copy’n'pasted old definition, then started to change it, and without reading popup question clicked ok.
Flash CS3 doesn’t have such ability but good thing is that there is small Open Source Java tool for quick and simple multi file string replacement.
First tool that I found worked nicely for me:
Tool’s name is SandR
and project’s url:
http://sourceforge.net/projects/sandr/
It can even scan folder and subfolders and replaces all files inside.
But, later I realized that it has problem with UTF-8 file encoding so it puts some bytes at begining of .as file, so you have same situation where you have to open each .as manually.
Better solution is another open source java tool: JReplace
http://sourceforge.net/projects/jreplace/
it worked very good in many cases (in all
)
Very handy.