My application is growing in size. Many of my components are now 1000+ lines of code, most of which is ActionScript functions.
What is the best way to refactor this into classes? Are there any tutorials explaining something like this?
I'd like to do something like "myComponent1Util" and "myComponent2Util" respectively, to handle common functions. I notice I have a lot of functions that could be refactored into smaller functional code.
Anybody have any tips or advice before I journey down that road? It would be appreciated.
There is no general rule of thumb. Most probably your classes are overloaded
with responsibilities. You can try to read Martin Fowler's refactoring as a
starting point. Examples are in Java and C# but you'll get the big picture.