This is driving me absolutely nuts. I've scoured threads on the subject and NOTHING seems to work.
I have an FLA file with the following code on frame 1:
import TestClass;
var tstClass:TestClass = new TestClass;
tstClass.testMethod();
In the accompanying AS file, I have the following:
package
{
public class TestClass
{
public function testMethod():void
{
trace("It Works!");
}
}
}
I've tried everything I can think of to get this to work, but I keep getting error after error in Flash. The errors I'm getting are:
Scene 1, Layer 'Layer 1', Frame 5, Line 3 1180: Call to a possibly undefined method TestClass.
Scene 1, Layer 'Layer 1', Frame 5, Line 3 1046: Type was not found or was not a compile-time constant: TestClass.
Scene 1, Layer 'Layer 1', Frame 5, Line 1 1172: Definition TestClass could not be found.
Scene 1, Layer 'Layer 1', Frame 5, Line 1 1172: Definition TestClass could not be found.
I'd be hugely grateful to anyone that could offer ANY insight into a solution here.
Thanks, Jim