0
Hello, I have a list of clips Movie to be called inside an if, but I’m not able to concatenate the variable that contains the name of these clips. Imagine that:
I have three clips: P1, P2 and P3. And I want to call them dynamically, I tried that but it doesn’t work. Someone knows how?
if (qtdd == variavel_num) {
this."caminho_do_mc.p" + var_numero_do_mc + .gotoAndStop(2); //o problema está aqui
}
You can try it like this
this["caminho_do_mc.p"+var_numero_do_mc].gotoAndStop(2);
or sothis.caminho_do_mc["p"+var_numero_do_mc].gotoAndStop(2)
– Icaro Martins
Pass the clip declaration code.
– Augusto Vasques
I tried this way Icarus but it didn’t work :( Thanks for the help.
– jeznunes