I’m developing a half-decently large flash application, and I have a good dozen geometry-related classes. Most of them have about 6 levels of inheritance (down to Object level)
These classes have several methods and properties averaging about 400 lines of code each.
During the course of the application, hundreds and possibly thousands, of these objects are created. I’m wondering if the methods are duplicated for each object in memory or if they’re statically stored and don’t take up extra memory.
I seem to remember something about using Prototypes and that they are re-used for all instances of that class so it doesn’t take up extra resources. Is that the same case for AS2 classes? Or should I refactor my classes so that they only contain variable properties and I use static helper methods to alter them?