Error #1007: Instantiation attempted on a non-constructor with APE
Date: Friday 1st May 2009
Time: 11:40
Category: ActionScript 3.0
Views: 2,349
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.