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

variable einsetzen

Explorer ,
May 22, 2020 May 22, 2020

Copy link to clipboard

Copied

variable einsetzen funktioniert nicht

 

land_1_seite_1_bt_1

 

x = 1;//land
y = 1;//seite

this.land_1_seite_1_bt_1.on("click", anzeige_web_1_2);

this.["land_" + x +"_seite_" + x + "_bt_" + x].on("click", anzeige_web_1_1);

 

TOPICS
ActionScript

Views

629

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 ,
May 22, 2020 May 22, 2020

Copy link to clipboard

Copied

use:

 

this["your string"].on("click",etcF);

 

NOT

 

this.["your string"].on("click",etcF);

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
Explorer ,
May 23, 2020 May 23, 2020

Copy link to clipboard

Copied

danke es funktioniert

ich habe noch eine bitte.

("click", anzeige_web_1_1) klappt nicht.

danke vorab

 

//-------------------------------------------
//funktioniert

x = 1;//land
y = 1;//seite

this[["land_"+x]+["_seite_"+y]+"_bt_1"].on("click", anzeige_web_1_1);

function anzeige_web_1_1(evt) {

pop = window.open(...........................);  
	pop.focus();
}

//----------------------------------------------------------------------------------------
//funktioniert nicht

x = 1;//land
y = 1;//seite

this[["land_"+x]+["_seite_"+y]+"_bt_1"].on("click" , [anzeige_web_+[y]+_1]);


function [anzeige_web_+[y]+_1](evt) {

pop = window.open(...........................);  
	pop.focus();
}

 

 

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 Expert ,
May 23, 2020 May 23, 2020

Copy link to clipboard

Copied

LATEST

use:

 

this["land_"+x+"_seite_"+y+"_bt_1"].on("click", anzeige_web_1_1)

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