Hello.
I am making a till management system for a coffee shop. I have the different types of products on different frames. I am trying to work out a way to be able to press the buttons for each individual product, and have this add the cost to a virtual cart, i.e. a coffee for £1.
I have tried to use the actionscript cost = 0, and the buttons will have on(release) } cost+=1 cost.text = cost
----------
While this works adding the costs on that one frame, the actionscript cost=0 does not update on the next frame to show the current cart amount, which has the next set of products and I therefore have no idea how I would keep the current cost of the basket into the next frames and then to the checkout using the current actioncript.
Any help would be appreciated.

Using CS4 Professional Actionscript 2