how to populate txt within movieclip created using duplicatemovieclip command
i have amovie clip on stage with a text field inside it.
i want to create multiple movie clips using duplicatemovieclip command and in each i want to popluate the text field with different text.
Code:
for(m=0; m < 5; m++)
{
if (m==0){
cat.name_txt.htmlText="first";
cat._y=50;
}
else
{
duplicateMovieClip (cat, "cat" + m+1, m+1);
newname = "cat" + m+1;
//trace (newname);
newname.name_txt.htmlText="crap";
newname._y = 50*(m+1);
trace(newname._y);
}
only the first is being displayed....plz guide with this code ...i think i m making a mistake in the newname method of addressing the movieclips created using the duplicate command