How to program Money in Flash (AS2)

Subscribers:
6,790
Published on ● Video Link: https://www.youtube.com/watch?v=hO-CPSuaCW8



Duration: 27:22
209 views
0


What the hell happened to the cursor? It was fine when I was recording...

This cool little code will calculate money so that when the pennies go over 99, it updates the pounds without any annoying gaps that you would see if using decimels, EG £0.99 + 0.10 would equal £1.9 (uggh why?)

The code is controlled by 2 variables. Punds and Pennies. When pennies is a number between 0 and 9, it will add in a '0' before it so that it looks how it's supposed to, EG £1.09







Tags:
marksmithwas12
actionscript
as2
flash
currency
pounds
pence
pennies