# Compile error, type not found

**URL:** <https://forum.kirupa.com/t/compile-error-type-not-found/306517>\
**Category:** Uncategorized\
**Created:** [March 16, 2010, 9:55pm UTC](https://forum.kirupa.com/t/compile-error-type-not-found/306517 "2010-03-16T21:55:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stilllearning](https://avatars.discourse-cdn.com/v4/letter/s/46a35a/32.png) [@stilllearning](https://forum.kirupa.com/u/stilllearning)\
**Post date:** [March 16, 2010, 9:55pm UTC](https://forum.kirupa.com/t/compile-error-type-not-found/306517/1 "2010-03-16T21:55:12Z")

</div>

Hi,

I am an actionscript newbie, and I am trying to do something seemingly simple.

I have an actionscript file with a class defined, and I am trying to define an object for that class in another actionscript file but I keep getting a compile error that says type not found.

Here is what my code looks like

ABC.as

package{  
…  
public class ABC{

…  
…  
}

Paint.as

import ABC

package{  
…  
public class Paint extends Movieclip{

```
[COLOR="Red"]var abc:ABC; // throws an error [/COLOR]

```

}  
…  
}

If someone could point me in the right direction that would be great.

Thank you,  
Amrita
