# \[MX\] Basic problem passing a var from input field

**URL:** <https://forum.kirupa.com/t/mx-basic-problem-passing-a-var-from-input-field/8524>\
**Category:** flash\
**Created:** [November 22, 2002, 7:32pm UTC](https://forum.kirupa.com/t/mx-basic-problem-passing-a-var-from-input-field/8524 "2002-11-22T19:32:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![highwire](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/highwire/32/107_2.png) [@highwire](https://forum.kirupa.com/u/highwire)\
**Post date:** [November 22, 2002, 7:32pm UTC](https://forum.kirupa.com/t/mx-basic-problem-passing-a-var-from-input-field/8524/1 "2002-11-22T19:32:54Z")

</div>

Sorry if this is rudimentary. I want to pass a value from an input form to a function. The sample attached tries to change a movie clip’s x and y position based on values in the form input fields; theClip, xDist, yDist.

When I hard code it, the function receives the values and works, but when I give it variable names referring to the fomr fields, I get nothing. :cyclops:

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 25, 2002, 11:44am UTC](https://forum.kirupa.com/t/mx-basic-problem-passing-a-var-from-input-field/8524/2 "2002-11-25T11:44:37Z")

</div>

Hi.

Values in text field are strings, just names , and what you want to move is a MC so you have to evaluate the string to see if corresponds to existing object.

Find a working file attached

Cheers

SHO

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 26, 2002, 2:34pm UTC](https://forum.kirupa.com/t/mx-basic-problem-passing-a-var-from-input-field/8524/3 "2002-11-26T14:34:56Z")

</div>

that did it. glad it was simple and that I wasn’t missing something really fundamental.

- why was your fla only 74k when mine was 132k?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 26, 2002, 2:51pm UTC](https://forum.kirupa.com/t/mx-basic-problem-passing-a-var-from-input-field/8524/4 "2002-11-26T14:51:01Z")

</div>

Hi,

I just deleted unused items from the library.

Cheers

SHO

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 26, 2002, 2:56pm UTC](https://forum.kirupa.com/t/mx-basic-problem-passing-a-var-from-input-field/8524/5 "2002-11-26T14:56:35Z")

</div>

And u r welcome!!!🙂
