View Full Version : Problem with Flash8 variable conversion

10-27-2005, 10:37 AM
Im a beginner to flash started to learn it few days ago.I got a question:I made text input field with the text tool and choose numeral type at the embed tab(to make sure i will recieve only numbers).I would like to make work with the numbers coming from the input field.My problem is that the variable comes from the field is string.I cannot convert it to number.I tried Number(),parseInt() but nothing.I would like to use math fuctions with the variable but i cannot use them on strings only on numbers.Please help!:confused:

10-27-2005, 08:44 PM
1. embed panel does not mean typing restrictions, it says which caharacters will be embeded.
2. parseInt works, show ur code....