This will probably be incredibly simple for anyone who knows Flash, but I know nothing about it, so I need help.
I have a button, a variable called "value", and a dynamic text box in which "value" is displayed. All I want to do is increase "value" by 1 every time the button is clicked, and have the new number displayed in the text box after every click.
In the first frame of the movie, I have the following code:
var value = 0;
In the button, I have the following code:
on (press) {
value = value + 1;
box1.text = value;
}
It seems simple enough, but it doesn't work. Nothing happens.
Any ideas? Thanks in advance.
Thanks a ton, doumbek, that worked perfectly. Thanks also for the explanations... I appreciate it.
I have a button, a variable called "value", and a dynamic text box in which "value" is displayed. All I want to do is increase "value" by 1 every time the button is clicked, and have the new number displayed in the text box after every click.
In the first frame of the movie, I have the following code:
var value = 0;
In the button, I have the following code:
on (press) {
value = value + 1;
box1.text = value;
}
It seems simple enough, but it doesn't work. Nothing happens.
Any ideas? Thanks in advance.
Thanks a ton, doumbek, that worked perfectly. Thanks also for the explanations... I appreciate it.