AS3 - hitTestObject with dynamic MovieClips added through For Loops <p>I've been attempting to set up a hitTestObject function in a project I've been working on recently and have encountered some difficulty.</p> <p>This is because I'm trying to do it with MovieClip instances dynamically added through a For Loop. The MovieClips being added are called 'square' and when I left Mouse Click I add a series of these MovieClips to the stage. My problem is that I want to listen out for a hitTestObject of 'square' intercepting 'square' and subsequent additions of the same MovieClip.</p> <p>I've set up a numerical variable that increments up by 1 each time I add the group of 'square' MovieClips through left click to the stage and I've assigned this number along with a string to combine together to create a square.name instance.</p> <p>In my case the first group of MovieClips added would have a .name instance called 'Square 1' and then 'Square 2' on the second mouse click and so on.</p> <p>I've also added and pushed each name through into a container array for referencing later.</p> <p>So how can I actually reference these dynamic names in a hitTestObject argument using my .name instance and array??</p> <p>I'm sure it is obvious and I've done the groundwork so any help to point this out to me would be greatly appriciated.</p> <p>Many Thanks.</p>