# 2 classes in the same package

**URL:** <https://forum.kirupa.com/t/2-classes-in-the-same-package/233825>\
**Category:** flash\
**Created:** [July 27, 2007, 9:31am UTC](https://forum.kirupa.com/t/2-classes-in-the-same-package/233825 "2007-07-27T09:31:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aquilonian](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@Aquilonian](https://forum.kirupa.com/u/Aquilonian)\
**Post date:** [July 27, 2007, 9:31am UTC](https://forum.kirupa.com/t/2-classes-in-the-same-package/233825/1 "2007-07-27T09:31:05Z")

</div>

This migth be so basic that i am afraid to ask  
Anyway

```php

package leprechan {
 public class c1{
  var gh:int = 1;
 }
 public class c2{
  var gh:int = 2;
 }
}

```

saved as leprechan.as

and in the main timeline:

```php

import leprechan.c1;
var c:c1 = new c1();

```

flash says:  
]1172: Definition leprechan:c1 could not be found.  
so how can i do that?I dont want a class to be kind of a helper to the other, i want them to be like MovieClip and Sprite inside the same package
