# AS best practice questions

**URL:** <https://forum.kirupa.com/t/as-best-practice-questions/321090>\
**Category:** flash\
**Created:** [April 10, 2011, 5:26pm UTC](https://forum.kirupa.com/t/as-best-practice-questions/321090 "2011-04-10T17:26:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashgroove](https://avatars.discourse-cdn.com/v4/letter/f/b5e925/32.png) [@flashgroove](https://forum.kirupa.com/u/flashgroove)\
**Post date:** [April 10, 2011, 5:26pm UTC](https://forum.kirupa.com/t/as-best-practice-questions/321090/1 "2011-04-10T17:26:51Z")

</div>

Hi,

There are a few things regarding best practices in ActionScript that I would like to know about:

1. 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 ?

1. 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.

1. 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.
