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
adammichaelheggeAsked:
Who is Participating?
 
adammichaelheggeAuthor Commented:
nevermind. stupid mistake on my part
0
 
adammichaelheggeAuthor Commented:
stupid mistake
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.