About Orland MediaDevelopmentTrainingBlogRSS FeedContact us
Microphone

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: 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.

Social bookmarks
  • Digg
  • Twitter
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • email
  • Reddit
  • StumbleUpon
  • LinkedIn
  • Print
Rate this post
1 star2 stars3 stars4 stars5 stars   (Roll over and click)
Reply

Lenovo Microsoft Adobe Heart Internet Envirowise
Copyright © 2008 Orland Media Ltd | All rights reserved Company details Ethical policy Terms & conditions Privacy policy