# Handling Evals in Objects

**URL:** <https://forum.kirupa.com/t/handling-evals-in-objects/319272>\
**Category:** flash\
**Created:** [February 15, 2011, 6:24am UTC](https://forum.kirupa.com/t/handling-evals-in-objects/319272 "2011-02-15T06:24:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![megshea](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@megshea](https://forum.kirupa.com/u/megshea)\
**Post date:** [February 15, 2011, 6:24am UTC](https://forum.kirupa.com/t/handling-evals-in-objects/319272/1 "2011-02-15T06:24:24Z")

</div>

Hey All, I need to make a function that creates an object based on each set of data in an XML file. I am currently using bracket notation to do it, but don’t know how to increment the next object’s name dynamically. I wanted to do something like this:

```auto

showData*["myElement"] = objData.data1.yada.yada.yada

```

How would I correctly change the showData name for each numerical count to showData1, showData2, etc?

Many Thanks for your help.
