I've got, in my Toolbar.as class, a simple variable (4-digit number) displayed in a dynamic text box, like that :
var number = 9999;
useText.text = String(number);
trace(number);
In my puzzle class I have a condition and I would like to decrease the number if it's true. How can I do that ?
For exemple, I've got, in my Puzzle.as class :
if (inv.containsItem("rock")) {
toolbar.useText.text = "String(number)" - 100;
}
But it doesn't work (I know that I have to change the "String(number)" - 100 but what should I put ?
Thx !!!