duplicateMovieClip problem

Ok guys, I have an mc of which I make some duplicates, and then I want a function to be executed on all of those duplicates.

I tried this:

for (i=1; i<amount; i++) {
	mcInstance0.duplicateMovieClip("mcInstance"+i, this.getNextHighestDepth(), {_x:random(400)});
	mcInstance*.theFunctionIWantToExecute();
}

But that doesnt work.
What [color=black]does[/color] work is:

for (i=1; i<amount; i++) {
 	mcInstance0.duplicateMovieClip("mcInstance"+i, this.getNextHighestDepth(), {_x:random(400)});
 	}
mcInstance0.theFunctionIWantToExecute();
mcInstance1.theFunctionIWantToExecute();
mcInstance2.theFunctionIWantToExecute();
mcInstanceN.theFunctionIWantToExecute();

But that’s silly. Really silly when I need like 100 duplicates.
So what’s wrong with my first code? :blush:

Thanks in advance.