Simple Shopping Cart

Morning all,

I’m making a shopping cart for a flash site, this is a really simple cart, I already have the form hooked up to versign via php. I’m having trouble with the script which keeps track of the items in the cart and the grand total. On my add to cart button, it basically adds 1 to dynamic text variable but the AS isnt doing math. heres a quick snippet of whats in my add to cart button


My variable reads NaN after pressing add to cart.

thanks in advance!

edit: fixed it, needed


in my cart clip, I figured if 0 was placed in the dynamic text box via the stage and not AS it would still define quantity as 0, guess not.