[haXe] Still error

Petersson, Tobias Tobias.Petersson at laerdal.dk
Tue Dec 4 10:27:34 CET 2007


You still can't have an external class as a member variable if it will
be loaded later.
This hasn't worked since 1.13.
 
The Main class is the entrypoint of the library. ( haxe -swf out.swf
-swf-version 9 Main )
 
class Main {
    public function new () {
        var a : A = new A();
    }
}
 
class A {
    private var b : B ;
    public function new() {
    }
}
 
 
external class B {
    public function new() {}
}
 
 
Will generate the error:
 
VerifyError: Error #1014: Class B could not be found.
 at global$init()
 
When loaded from another flash file.
The B class will be loaded later into the project but haxe tries to
create it right away.
 
Best regards
Tobias 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.motion-twin.com/pipermail/haxe/attachments/20071204/2988e9bd/attachment.htm


More information about the Haxe mailing list