When you want to get the name of the clicked movieclip use the currentTarget Event property
In the sample below you can see a function that create dynamically movieclips (createRows).
Each new movieclip have an event listener, when the user will click each one of the movieclips the name of the movieclip will be traced:
Thursday, January 26, 2012
See the Pen Check max profit by buying & selling day by Ariel Barkan ( @ArielBarkan ) on CodePen .