I have a number of n instances of the same movie clip on the stage (I don't know the n number). How can I make a function or a method work for all of these movie clips ? Considering that when I create the instances I give them names like clip1, clip2 and so on.. I probably have to use 'for' and specify the paths something like this.. "clip" + i .. I don't know how the syntax works here.
for example: How can I make this method work for all the n clips ?
Code:
mc_clip1.onRelease = function():Void {
do something;
}