Searching for duplicated movieclips

Hi everybody,

I have several movieclips on stage, all of them an instance of the same movieclip (they were created using duplicateMovieclip, and the number of mc created varies each time). In each mc there is a textfield called mt. I would like to “search”, using code, for the last duplicated movieclip, and change the text in the textfield. The movies are named mc1, mc2, mc3, etc.

Can anyone help me figure out how to create a code for this?
Thanks a lot

This is the code I have been using, but it changes the text in all the movies.


for (var mcs in _root) {
		if (typeof _root[mcs] == "movieclip") {
			_root[mcs].mt.text="Last movie"
		}
	}