Link to home
Start Free TrialLog in
Avatar of adammichaelhegge
adammichaelhegge

asked on

Flash AS2 - Convert String to Integer from flashvars string

I am importing a number into my flash video using flashvars. I need to read the number as integer, but I am having trouble converting the value to an integer. Here is what I currently have...


var current_percentage = _root.var1;
current_percentage = parseInt(current_percentage);
current_percentage = Number(current_percentage);

...no luck w/ that. I need the current_percentage value to be an integer.

Thanks in advance.

Adam
ASKER CERTIFIED SOLUTION
Avatar of adammichaelhegge
adammichaelhegge

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of adammichaelhegge
adammichaelhegge

ASKER

stupid mistake