# AS2: Problem with instance names

**URL:** https://forum.kirupa.com/t/as2-problem-with-instance-names/289495
**Category:** flash
**Created:** [May 31, 2009, 6:04pm UTC](https://forum.kirupa.com/t/as2-problem-with-instance-names/289495 "2009-05-31T18:04:16Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![adiosamigos](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@adiosamigos](https://forum.kirupa.com/u/adiosamigos)
#### Post date: [May 31, 2009, 6:04pm UTC](https://forum.kirupa.com/t/as2-problem-with-instance-names/289495/1 "2009-05-31T18:04:16Z")

</div>

I am creating a form and the text fields are contained in movieclips, who’s instance name is “input”+depth.

So each text field has the instance name input1, input2, input3, etc

The movieclips are inside another movieclip called with the instance name “container”.

The problem is when I use getURL to submit the data values this is the actionscript I am using this actionscript:

container.input.getURL();

which obvious only sends the one value.  
There are two solutions I can think of but I don’t know how to do either:

1. send all the variables in “container”
2. put something on the end of “input” that means input plus any number

Please help I have no idea.

Thanks
