| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Oct 2005
Posts: 1
|
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!
![]() |
|
|
|
|
|
#2 |
|
lala
Join Date: Feb 2002
Location: on the road
Posts: 2,859
|
1. embed panel does not mean typing restrictions, it says which caharacters will be embeded.
2. parseInt works, show ur code.... |
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|