Hi there.
I created some movie clips using duplicate movie clip. But when i try to modify them, by using their name stored in a variable, i just cant (please reffer to “HERE”).
The process of creating the movie clips seem to be ok… But not sure if the way that i am calling the movieclip’s names is ok.
Why is that?
Thanks.
Cheers.
Leo.
po_x = 100;
po_y = 100;
t = 1;
i=0;
while (i < 4)
{
duplicateMovieClip(mc_l_3.mc_l_2.mc_l_1.area_test, "area_test_" + (i), mc_l_3.mc_l_2.mc_l_1.getNextHighestDepth());
mc_l_3.mc_l_2.mc_l_1["area_test_"+i].onRollOver = function()
{
temp = this;
trace(temp);
un = temp.lastIndexOf("_");
l = temp.length();
temp = temp.substring(un+1, l);
//trace(temp);
};
i++;
}
for (c=0; c<30; c++)
{
mc_l_3.mc_l_2.mc_l_1["area_test_"+(c+1)]._x = po_x;
mc_l_3.mc_l_2.mc_l_1["area_test_"+(c+1)]._y = po_y;
po_y = po_y+102;
if (t == 19)
{
t = 0;
po_x = po_x+120;
po_y = -1109.1;
}
t++;
}
m_var= "mc_l_3.mc_l_2.mc_l_1.area_test_3"; //HERE
_root[m_var]._xscale = 1500; //HERE
_root[m_var]._yscale = 1500; //HERE