Hi:
I have this function and code:
for (i=0; i<=4; i++) {
eval("m"+i).onRelease = function() {
carrega_movie(i,10,10);
};
}
function carrega_movie(movie,posx,posy) {
container._x = posx;
container._y = posy;
container.loadMovie(movie);
}
I want to assign an Onrelease function for each movie using the “i” value
But it assumes i=5 (because of my for loop), and i want it to be 0,1,2,3… in movies m0,m1, m2 …
Is there any solution to make this work so that the function carrega_movie uses the temporary value of i assigned in the for loop?
Many thanks for your help