Search  

USER FILL IN THE SPEED

HomeForumsHelp NeededUser fill in the speed
43966 DudeJonne
10 posts
Sold between 1 and 100 dollars

I want to let an user have to input the speed. I have a inputbox: noSpeed. That should be the speed, in a movieclip timeline I have this code: var speed = _root.noSpeed.text;

This doesn’t works while when I trace the noSpeed it appears to be 5. And when I just fill in 5, then it works fine.

Also tried with Number(_root.noSpeed.text); but that didn’t make any differens.

Someone knows?

Posted about 1 month ago
36416 Emroni
242 posts
Exclusive author Sold between 100 and 1 000 dollars Bought between 1 and 9 items

Might be a Integer/String problem. The text they enter is a string, but you might want to use it as an integer. You need to convert it from one to another, to use it properly.

Dont know for sure though, but this could be the problem :)

Posted about 1 month ago