-
loading from a txt file
I'm loading some variables in from a text file and everything loads ok, but flash thinks my numbers are strings. How can I get flash to realized a variable is a number and not a string.
-
Who, What, Why ... ?
Don't pute quotes around it.
Regards,
-
Fraggs is out on this one!
Loading variables from a text file will allways be considered by Flash as strings... You have to convert them back to integers once they're loaded!
-
Who, What, Why ... ?
awwww, dang !
"Another one bites the dust"
-
ok, so how do I convert a variable to an integer
-
Registered User
hi,
using Number():
code:
myNumber = Number(myString);
-
hey thanks! the code works now
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|