Hi,
There are a few things regarding best practices in ActionScript that I would like to know about:
- When a class uses other classes located in the same package, I know that it is not necessary to import them.
But what is the best practice ? Should they be imported, just for the sake of clarity and order or is it recommended not to import them ?
- Is there a recommended order in which to arrange the imported classes ? I am just interested if there is a general idea regarding the order.
Maybe display object classes before event classes, maybe event classes before component classes, and so on.
- Is there a recommended order in which to arrange the class properties and methods ?
Regarding the properties, private, public, protected, constants.
Regarding the methods, private, public, protected, getters, setters.
Again, I am simply looking for best practices and recommended practices regarding these issues, I am aware that they are not essential to the code and that each person can choose to do different things.
Thank you.