I was wondering how do i change the Var # on button click like say
Var = 100 is the highest it can go then after the button press it goes down to like Var = 90
Printable View
I was wondering how do i change the Var # on button click like say
Var = 100 is the highest it can go then after the button press it goes down to like Var = 90
Just decrease the variable in the function that handles the event when a button is clicked.
What code to use depends on the ActionScript version you are using (AS1 / AS3) and the kind of button (a component or a button you have drawn yourself using the gui).
Problem is i am not sure how to do that i am still new to AS Scripting
What kind of button do you want to use ?