# Import class on first layer

**URL:** https://forum.kirupa.com/t/import-class-on-first-layer/265507
**Category:** Uncategorized
**Created:** [July 9, 2008, 5:57pm UTC](https://forum.kirupa.com/t/import-class-on-first-layer/265507 "2008-07-09T17:57:53Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)
#### Post date: [July 9, 2008, 5:57pm UTC](https://forum.kirupa.com/t/import-class-on-first-layer/265507/1 "2008-07-09T17:57:53Z")

</div>

Hello,

This might be a very simple question. I have a class called ‘document’.  
I would like to import this class on the first layer of my flash file.  
I’m using Flash 9 with as3

would this be sufficient?

```auto

import document;

```

:hat:

---

<div class="post-metadata">

### Author: ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)
#### Post date: [July 9, 2008, 7:41pm UTC](https://forum.kirupa.com/t/import-class-on-first-layer/265507/2 "2008-07-09T19:41:16Z")

</div>

If it’s in the same directory as your FLA, you don’t need to import it.

---

<div class="post-metadata">

### Author: ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)
#### Post date: [July 9, 2008, 8:38pm UTC](https://forum.kirupa.com/t/import-class-on-first-layer/265507/3 "2008-07-09T20:38:28Z")

</div>

> [@TheCanadian;2355846](#):
>
> If it’s in the same directory as your FLA, you don’t need to import it.

then how does it get reference?

---

<div class="post-metadata">

### Author: ![TheCanadian](https://avatars.discourse-cdn.com/v4/letter/t/67e7ee/32.png) [@TheCanadian](https://forum.kirupa.com/u/TheCanadian)
#### Post date: [July 10, 2008, 12:14am UTC](https://forum.kirupa.com/t/import-class-on-first-layer/265507/4 "2008-07-10T00:14:42Z")

</div>

Using the class name . . .

---

<div class="post-metadata">

### Author: ![tfoston](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tfoston/32/2516_2.png) [@tfoston](https://forum.kirupa.com/u/tfoston)
#### Post date: [July 10, 2008, 1:37am UTC](https://forum.kirupa.com/t/import-class-on-first-layer/265507/5 "2008-07-10T01:37:07Z")

</div>

If the custom class is not in the same folder in the fla, you’ll have the  
File \> Publish Settings \> Settings \>  
Then add the class path of where the document class resides  
Then you won’t need to use the import statement
