# Use array value for instance name?

**URL:** <https://forum.kirupa.com/t/use-array-value-for-instance-name/224558>\
**Category:** flash\
**Created:** [May 3, 2007, 9:20am UTC](https://forum.kirupa.com/t/use-array-value-for-instance-name/224558 "2007-05-03T09:20:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sabishi](https://avatars.discourse-cdn.com/v4/letter/s/76d3ee/32.png) [@sabishi](https://forum.kirupa.com/u/sabishi)\
**Post date:** [May 3, 2007, 9:20am UTC](https://forum.kirupa.com/t/use-array-value-for-instance-name/224558/1 "2007-05-03T09:20:25Z")

</div>

hey ive been trying to use a value from an array which is “MC1” to call an onRelease function of a movieclip with the instance name MC1. heres my attempts but they have not worked sofar.

```auto

var CorrectClip:MovieClip = Question[Answer][0];
trace(Question[Answer][0]);
CorrectClip.onRelease = function() {
 trace("WOOO");
}

```

Ive attached the whole file with all the code in it the above is just the part I am unsure of how to do.
