Participant
January 20, 2022
Question
Quantity Counter Buttons
- January 20, 2022
- 2 replies
- 194 views
I'm brand new to Animate so be gentle as I have no idea what I'm doing 🙂
I'd like to create a way of recording a quantity on the last frame in my project by using plus and minus buttons to count up or down.
Below is old code, but this is along the lines of what I'm trying to achieve:
add.btn.addEventListener(MouseEvent.CLICK, addone);
var count = 0;
counting.text = count;
function addone (event:Event){
count ++;
counting.text = count;
}
Can anyone help me figure out what I need to do? Thank you!
