/t5/animate-discussions/typecasting-in-as3/m-p/390703#M11042Mar 25, 2008
Mar 25, 2008
Copy link to clipboard
Copied
LATEST
You can convert a string to an integer with parseInt(myChar);
as long as the string containes a number. Also, you can use
parseFloat(myChar); to convert to a floating-point (decimal)
number. However, int(myChar); should also work, but only because
Flash has to guess what you are trying to do so this is not
recommended.