# AS2.0 help with Include

**URL:** <https://forum.kirupa.com/t/as2-0-help-with-include/77106>\
**Category:** flash\
**Created:** [January 24, 2005, 7:47pm UTC](https://forum.kirupa.com/t/as2-0-help-with-include/77106 "2005-01-24T19:47:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snake\_Steel](https://avatars.discourse-cdn.com/v4/letter/s/8dc957/32.png) [@Snake\_Steel](https://forum.kirupa.com/u/Snake_Steel)\
**Post date:** [January 24, 2005, 7:47pm UTC](https://forum.kirupa.com/t/as2-0-help-with-include/77106/1 "2005-01-24T19:47:55Z")

</div>

I’m working on some classes in Flash Mx 2004 Pro, but I cannot seem to get the #include to work.

This is the error msg Flash gives me:

> **Error** myClass.as: Line 1: Classes may only be defined in external ActionScript 2.0 class scripts.  
> class myClass {

Total ActionScript Errors: 1 Reported Errors: 1

This is my approach, maybe I’m doing something wrong…

1. I have an external AS file called myClass.as, which resides in the same directory as my Class.FLA

2. I have a constructor function in my class called myClass:

```auto
class myClass{
  public function myClass(){
  }
}

```

What am I doing wrong? :look:

Best regards
