PDA

View Full Version : Clearing numeric fields



Equinex
April 18th, 2002, 05:01 AM
I have created a Flash 5 Movie which contains numerous input fields.
The
variables assigned to some of these fields have been converted into
numeric format using the Actionscript command Variable =
Number(Variable)

upuaut8
April 18th, 2002, 05:58 AM
I asume this is actually in reply to my parsInt(?); thread.. I appreciate you thinking on this, if that's the reason for this post. I'll give it a try, though I think I already went this route. I'll let you know if it helps my php inputed data.

Equinex
April 18th, 2002, 06:26 AM
Unfortunately no this was a problem I am having with a Flash Project which I have created to act as a calculator. I am having trouble clearing the fields. It would appear that the
full text of my post didn't appear.

So I have reposted my intended message.

I have created a Flash 5 Movie which contains numerous input fields.

The variables assigned to some of these fields have been converted into numeric format using the Actionscript command Variable = Number(Variable);

Is there a way where I can clear the contents of the fields that have
been converted which does not involve assigning zero to the variable
in question.

I have tried using variable = ""; but it seems to cause problems when
you attempt to perform another calculation.

Any help or examples in resolving this would be most appreciated.

Kind Regards,
BMM

Equinex
April 18th, 2002, 06:27 AM
But if it helps you then thats a bonus.

upuaut8
April 18th, 2002, 09:38 AM
lol.. it didn't. :(

I'll think about your problem, but I've never heard of another way of doing what you're talking about except variable=""

is there anyway that you can assign the variables using the "vars" feature? If so, they would only be used for that particular script, and then discarded until called again. It's very useful in functions when you don't want those variables set.