Error #1007: Instantiation attempted on a non-constructor with APE
Posted by Gavin on May 1, 2009 in ActionScript 3 | 4,131 views | No comments
We’re using APE – the ActionScript Physics Engine – for our current project.
If you run into the TypeError:
Error #1007: Instantiation attempted on a non-constructor
..when compiling with Flash CS4, the reason is that APE defines a class called Vector, which clashes with a new class, of a different kind, in Flash 10, also called Vector.
The solution is to either avoid publishing for Flash 10, if you don’t need it, or replace all references to Vector throughout the APE code with the fully qualified reference org.cove.ape.Vector.
