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

Ebenen

Explorer ,
Jul 14, 2020 Jul 14, 2020

Copy link to clipboard

Copied

hallo, ich benutze animate canvas.

ich habe mehrere symbole übereinander liegen.

wenn ich eins der symbole anclicke soll es immer über den anderen symbolen liegen.

dies möchte ich über ein script erledigen.

 

dank vorab.

Views

155

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 16, 2020 Jul 16, 2020

Danke. 😄

Votes

Translate

Translate
Community Expert ,
Jul 14, 2020 Jul 14, 2020

Copy link to clipboard

Copied

var your_movieclips = [this.mc1,this.mc2,...];

for(var i=0;i<your_movieclips.length;i++){

your_movieclips[i].addEventListener("click",f);

}

function f(e){

e.currentTarget.parent.addChild(e.currentTarget);

}

 

p.s. this probably won't work on frame 0.

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 ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

Danke. 😄

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 ,
Jul 16, 2020 Jul 16, 2020

Copy link to clipboard

Copied

LATEST

bitte.

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