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

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

Community Beginner ,
Mar 10, 2017 Mar 10, 2017

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;

  }

1.6K
Translate
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

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 ???

Translate
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

This is in Adobe Flash Professional CS 5.5

Translate
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

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

Translate
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
LATEST
Translate
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