PDA

View Full Version : [MX] Basic problem passing a var from input field



highwire
November 22nd, 2002, 02:32 PM
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:

eki
November 25th, 2002, 06:44 AM
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

highwire
November 26th, 2002, 09:34 AM
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?

eki
November 26th, 2002, 09:51 AM
Hi,

I just deleted unused items from the library.

Cheers


SHO

eki
November 26th, 2002, 09:56 AM
And u r welcome!!!!:)