TypeError: Error #1007: Instantiation attempted on a non-constructor. If you see this error without any obvious reason it might be one more bug of Flash Player. Flash Player doesn’t allow to instantiate internal classes in static section. Brief example:
1 2 3 4 5 6 7 8 |
package { public class A { static var b:B = new B(); } } class B { } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
package { public class A { static var b:B; public function A() { if (!b) { b = new B(); } } } } class B { } |