Here is, what I’ve got to do.
I have an xml which has several nodes, each has an attribute which holds a num (a price of product). Now, after the xml loaded into flash i list out all the product, displaying the names and the price. Under the lis I’ve got to write out the sum for all the prices. But when I just simply use this method
sumNum += accNum
inside the main cycle, I create the list, it just doesn’t work, coz it sees the price tag as a STRING, so it just puts each tag after one another, insted of adding them together.
How could I solve this?
Thanks!