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.

Rate this post: 1 Star2 Stars3 Stars4 Stars5 Stars
Loading ... Loading ...

Would you care to comment?

XHTML: You can use these tags:' <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

100% Valid XHTML 1.0 Transitional
Copyright © 2008-2012 Flash Freelancer All rights reserved.
Flash Freelancer version 1.0 a child of the Desk Mess Mirrored version 1.8.1 theme from BuyNowShop.com.