# Simple variable question

**URL:** <https://forum.kirupa.com/t/simple-variable-question/73935>\
**Category:** flash\
**Created:** [December 22, 2004, 12:33am UTC](https://forum.kirupa.com/t/simple-variable-question/73935 "2004-12-22T00:33:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![J\_S](https://avatars.discourse-cdn.com/v4/letter/j/9de0a6/32.png) [@J\_S](https://forum.kirupa.com/u/J_S)\
**Post date:** [December 22, 2004, 12:33am UTC](https://forum.kirupa.com/t/simple-variable-question/73935/1 "2004-12-22T00:33:31Z")

</div>

take a look at the results of these traces:

```
  trace(imgGal); //traces "1"
  trace(itemClip1._y); //traces "32"
  trace(itemClip[imgGal]._y); //traces "undefined"

```

why does the last trace not trace “32” like the second trace? I want to insert the variable “imgGal” onto the end of the mc “itemClip”, how can I do this?

this is what I want it for:  
[indent]arrow.\_y = itemClip[imgGal].\_y + 8;  
[/indent]
