[color=red]class myClass
{
private static var thisClass;
private var i;
function myClass() //constructor
{
thisClass=this;
}
function navigation()
{
for (i=0,i<10,i++)
{
someMC.createMovieClip(“mc”+i,i);
someMC[“mc”+i].onPress()=function
{
trace(thisClass.i);
}
}
}[/color]
ok iknow whenever i click on the generated mc it will display 10, I want it do display 0 for mc0 , 1 for mc1, 2 for mc2 etc. Can anyone tell me how?