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

Ebenen

Explorer ,
Jul 14, 2020 Jul 14, 2020

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.

213
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

correct answers 1 Correct answer

Explorer , Jul 16, 2020 Jul 16, 2020

Danke. 😄

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

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.

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

Danke. 😄

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

bitte.

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