This section presents the order in which a file should be organized

#ElementDescription
1Initial Comment////////////////////////////////////////////////////////////////////////////////
//
// Nightspade Studio
// Copyright 2010 Nightspade Multi Kreasi
// Product Name
//
////////////////////////////////////////////////////////////////////////////////
2Package Definition
3Import statementImport statements
Use fully qualified imports

  • Package flash

  • Package com.adobe

  • Package com.nightspade (our custom component)

  • Packages of third party in alphabetical order

4Metadata[SWF] or [Embed]
5Class or Interface definition
6Static Variable

  1. public

  2. - const
    - Others public static
  3. internal

  4. protected

  5. private

  6. custom namespaces

7Instance Variable

  1. public

  2. - const
    - Others public static
  3. internal

  4. protected

  5. private

  6. custom namespaces

8Constructor
9Getters and Setters
10MethodsGrouped by functionality then by alphabet