Hey all,
I’m having trouble importing a very simple class as I’m new to CS4 and AS3.
I set a source path in my document’s AS3 publish settings as ‘com’. I have a folder structure: com/example/ at the root of my document’s project folder.
The source file in the example folder is TestClass.as with source:
package com.example {
public class TestClass {
public function TestClass() {
trace("Hello World!");
}
}
}
And on the first frame of my document’s main timeline I have this import statement:
import com.example.TestClass;
When I compile the FLA file I get two compiler errors stating the same thing:
1172: Definition com.example:TestClass could not be found.
I’ve Googled and massaged the settings as many ways as I can think of but all to no avail. I’ve even read a few threads here about the problem and while those people had their issues resolved, mine still remains.
Any help is greatly appreciated.