|
-
Hey people
Making a trial stop watch laptimer thingy and I am having trouble getting a zero to show up infront of my variables when the amount is less then 10. I want 1-9 to show up as 01, 02, 03...etc. I have tried using
if (var < 10){
var = "0" + var;
}
but that makes the variable become a text value instead of an integer. So when my counter adds 1 to the value I get 0111111 instead of 01, 02, 03, 04, etc.
Any way around this???
fla is here http://www.cplicious.com/laptimer/
Chris
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
|