Hi, I was wondering if anyone new how to add text to a dynamic text field so that a line of text is created, and you can keep on adding to it. I need it to simply add a number to the text line everytime certain buttons are pushed rather than multiplying it like a score in a game and I think I have gone wrong somewhere.
Here’s my example:
I have multiple buttons on the stage and each button has a different value applied to it (eg: BTN1 has 1, BTN2 has 2, BTN3 has 3 and so on…)
So (as an example) I was wanting to end up with the following in my dynamic text field “1132” if “BTN 1” was clicked 2x and “BTN 3” was clicked 1x and “BTN 2” was clicked 1x…
which equals… 1132
I’m trying to use the following actionscript but instead of it adding to my line of dynamic text it adds to it like so… 1+1 = 2
BTN1…
on (release) {
_root.equationcount+=1;
}
I’m now wondering if I should be using “count+” at all??
My var for the dynamic text field is “_root.equationcount”
As you’ve probably guessed I’m not too good at this,
Any help would be appreciated