Importing user defined classes into other .as files.
sandeep.akula at gmail.com
Mon Jan 14 07:27:51 PST 2008
I am trying to import one class into another class. For example I have
public class A
public function func()
I have named this file as "A.as" and kept it in "avmclass" under root
Then I have created new file "caller.as" in root folder.
The contents of caller.as is
var b1 = new avmplus.A();
And I have tried to compile it using
java -jar ../utils/asc.jar -AS3 -import ../core/builtin.abc caller.as
I am not getting any problem while generating .abc file.
But while running using avmplus_sd.exe , I am getting following error
*"ReferenceError #1065: Variable avmclass::A is not defined.
I have also tried to compile using
java -jar ../../utils/asc.jar -AS3 -import ../../core/builtin.abc -import
Then also I am getting same Error.
Can anyone know how to do this.
Thanks & Regards
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Tamarin-devel