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…
-
I have an external AS file called myClass.as, which resides in the same directory as my Class.FLA
-
I have a constructor function in my class called myClass:
class myClass{
public function myClass(){
}
}
What am I doing wrong?
Best regards