Hi, so I've been trying to work this out on my own and have just completely failed, what I'm trying to do is have to numbers count up to 6' by feet and inches, it would be easy enough to animate, but I can't seem to wrap my head around Flash's math functions.
Right now I have the feet and inches in two separate dynamic text boxes ("feettext" and "inchestext") nested inside the main loader movieclip, I've got the feet counting up fine, but I can't get the inches to count to 11 then repeat.
Any help would be much appreciated, thanks.
Flash version CS4, Actionscript 2, preloader tutorial I used here.
Hi, so I've been trying to work this out on my own and have just completely failed, what I'm trying to do is have to numbers count up to 6' by feet and inches, it would be easy enough to animate, but I can't seem to wrap my head around Flash's math functions.
Right now I have the feet and inches in two separate dynamic text boxes ("feettext" and "inchestext") nested inside the main loader movieclip, I've got the feet counting up fine, but I can't get the inches to count to 11 then repeat.
Any help would be much appreciated, thanks.
Flash version CS4, Actionscript 2, preloader tutorial I used here.
Whoops, in my hasty stupidity, I forgot to upload my .fla.
feet = 0;
inch = 0;
onEnterFrame = function(){
inch+=1/30;
if(inch >= 11.5){
inch = 0;
feet+=1;
}
total.text = feet+"' "+Math.round(inch)+"''";
}
You can make one box called "total".