dcole.ath.cx
02-19-2006, 04:37 AM
What is the right way to do something like this:
if (_i=0, _root.score.text=10_i, _i++) {
}
or
if (_i=0, _root.score.text=10*_i, _i++) {
}
this will set the var. i to be 0, then check to see if the score is equal to iX10 (var multiplied by 10), then add 1 to the var and try again...
------
Once I get that to work, I may go _i-- because it may not find an answer..
(the script I have shown above is PHP (which I know) but most action script I know is 98% like PHP
Thanks
if (_i=0, _root.score.text=10_i, _i++) {
}
or
if (_i=0, _root.score.text=10*_i, _i++) {
}
this will set the var. i to be 0, then check to see if the score is equal to iX10 (var multiplied by 10), then add 1 to the var and try again...
------
Once I get that to work, I may go _i-- because it may not find an answer..
(the script I have shown above is PHP (which I know) but most action script I know is 98% like PHP
Thanks