Hi:

I duplicate a movie 80 times using:

duplicateMovieClip("mask", "mask" + number, number);


So i have these movies:

mask
mask1
mask2
mask3
mask4
...
mask80


I want to control these movies using with().

* * * * * * * * * * * * * * * * * * * * * * * *

If I Write:

with(mask4)
{
gotoAndplay(25);
}

I can control the duplicated movie mask4


* * * * * * * * * * * * * * * * * * * * * * * *


Also if i write:


value = mask4;

with (value) {

gotoAndPlay(25);
}


I can control the duplicated movie mask4

* * * * * * * * * * * * * * * * * * * * * * * *

BUT I DONT WANT TO WRITE 80 WITH CLAUSULES TO CONTROL EACH MOVIE CLIP.

I WANT TO CREATE A LOOP, for example:

for (i=1; i <= 80; i++)
{
movie_number = i;
valor = "mask" + movie_number;

with (valor) {

gotoAndPlay(25);
}
}

BUT THIS CODE DOES NOT WORK.

It suppose to control mask1, then mask2, etc. But it does not.


I HAVE TRIED ALSO

for (i=1; i <= 80; i++)
{
x = 1;
valor = "mask" + x;

with (valor) {

gotoAndPlay(25);
}
x++
}


How can i solve this problem...?