I’ve been trying to learn AS3 and I’m having problems with setting the classpath in the Flash 9 IDE Alpha.
I set the classpath (Edit > Preferences > ActionScript > AS3 Settings) to: E:\Flash\AS3\Classes
I set up my custom classes in **E:\Flash\AS3\Classes\com\local\
**Example:
package com.local.examples {
public class SomeClass {
public static function doSomething():void {
// do something
}
}
}
SomeClass.as resides inside **com/local/examples/
**
In test.fla, I try to import the class using:
import com.local.examples.SomeClass;
But I keep getting the compiler error:
Error* D:\Projects\Flash\AS3\Example emp.as : Line 1, Column 54 : [Compiler] Error #1172: Definition com.local.examples could not be found.
À�
Error D:\Projects\Flash\AS3\Example emp.as : Line 1, Column 54 : [Compiler] Error #1172: Definition com.local.examples could not be found.
À�
ReferenceError: Error #1065: Variable Timeline0_2edfdd25a1c69b4ca6d385115f85eb1c is not defined.
Anybody got any ideas how I set the classpath properly and how I properly use the import/package?
I’ve tried to look already on the online AS3 docs on www.adobe.com and looked at the Senocular’s AS3 code hints but unfortunately I can’t get this to work.