# Package Organization

**URL:** https://forum.kirupa.com/t/package-organization/232771
**Category:** flash
**Created:** [July 17, 2007, 6:14pm UTC](https://forum.kirupa.com/t/package-organization/232771 "2007-07-17T18:14:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Wedge\_Man](https://avatars.discourse-cdn.com/v4/letter/w/f07891/32.png) [@Wedge\_Man](https://forum.kirupa.com/u/Wedge_Man)
#### Post date: [July 17, 2007, 6:14pm UTC](https://forum.kirupa.com/t/package-organization/232771/1 "2007-07-17T18:14:30Z")

</div>

Hey Guys,

I have a quick question about package organization. Currently I have my fla in my main folder and all of my class files in a directory called Main\_Core.

So with each class it starts with the code:

```auto
 
package Main_Core {
class MyClass {
//insert code
}
}

```

I’m getting to the stage where I have too many class files in that one folder for my organization levels to feel comfortable.

I’d like to organize it in the following heirarchy but I don’t know how to word the syntax. Any help would be great!

Heirarchy: Bold is a folder, regular type is a class file which EXTENDS the previous level’s class file. So MultipleClasses1 extends SubObjectTypeClass etc.

**Main\_Core**  
[INDENT]MainClass  
**Main\_Objects**  
[/INDENT]MainObjectClass  
[INDENT][INDENT] **SubObjectType1**  
[INDENT]SubObjectTypeClass  
**SubSubObjectType1**  
[INDENT]Multiple Classes1  
Multiple Classes1

[/INDENT][/INDENT] **SubObjectType2**  
[INDENT]SubObjectTypeClass  
**SubSubObjectType2**  
[INDENT]Multiple Classes2  
Multiple Classes2

[/INDENT][/INDENT][/INDENT][/INDENT]Also if I wanted to instantiate a class that is nested in that heirarchy so for example in the MainClass I wanted to say “new MultipleClasses2()” do i need to put the package class before it?

Thanks again!
