• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

TypeError: Error #1007: Instantiation attempted on a non-constructor. at MainGameFile/gameLoop()

Community Beginner ,
Mar 10, 2017 Mar 10, 2017

Copy link to clipboard

Copied

Any help? My boxMC is inside of my background(WorldMC) but I get an error saying

TypeError: Error #1007: Instantiation attempted on a non-constructor.

  at MainGameFile/gameLoop()

This is where the code is giving me trouble:

  //-----------------------------------

  // -----Box Spawning------------

  //------------------------------------

  //only spawn a box if there are less tan 100 already on screen

  {

  // Make a new instance of the box class

  var bx = new WorldMC.boxMC();

  // add the ship to the display list

  addChild(bx);

  //position and rotate the Box

  WorldMC.bx.x = Math.random() * stage.stageWidth;

  WorldMC.bx.y = Math.random() * stage.stageHeight;

  WorldMC.bx.rotation = 40;

  }

Views

1.3K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 10, 2017 Mar 10, 2017

Copy link to clipboard

Copied

Please post the name of the program you use so a Moderator may move this message

A program would be Photoshop or Dreamweaver or Muse or Premiere Pro or ???

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 28, 2017 Mar 28, 2017

Copy link to clipboard

Copied

This is in Adobe Flash Professional CS 5.5

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Apr 03, 2017 Apr 03, 2017

Copy link to clipboard

Copied

This has been answered from a different post that i have made.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Apr 03, 2017 Apr 03, 2017

Copy link to clipboard

Copied

LATEST

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines