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

TypeError A term is undefined and has no properties

Explorer ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

Hello again sorry for coming back so early but i have this error

 

if (objMode == null) {
objMode = new battle_mode_mc;
mSystem.contMENU2.addChild(objMode);
objMode.btn_insane.addEventListener(MouseEvent.CLICK, modeInsaneClick, false, 0, true);      <--- this is the line it says is undefined and has no properties
///
objMode.btn_insane.visible = false;
///
_area_select = AREA;
_battle_mode = 1;

 

 

private function modeInsaneClick(event:MouseEvent):void {
_battle_mode = 4;
var clip = new battle_mc;
clip.init(mSystem, _area_select, _battle_mode);
destroy();

}

 

TOPICS
ActionScript

Views

207

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

correct answers 1 Correct answer

Explorer , Jul 12, 2021 Jul 12, 2021

I managed to figure this out if you have a term that is undefined it means the button/image you put in does not have a instance name and it needs one 🙂

so hope this helps if anyone else has this issue

Votes

Translate

Translate
Explorer ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

I managed to figure this out if you have a term that is undefined it means the button/image you put in does not have a instance name and it needs one 🙂

so hope this helps if anyone else has this issue

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
LEGEND ,
Jul 12, 2021 Jul 12, 2021

Copy link to clipboard

Copied

LATEST

Nothing ever doesn't have an instance name. If you don't give a clip an instance name at authoring time, it will be automatically assigned one at runtime.

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