[MX] Basic problem passing a var from input field

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:

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

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?

Hi,

I just deleted unused items from the library.

Cheers

SHO

And u r welcome!!!:slight_smile: