Math(adding, multipling, ect

Hello crew
I was wandering if I can get values(numerical) from an xml files
and multiply them. Need a tutorial

Something like this.

a-bat>30
one-base>10
two-base>5
three-base>1
home-run>0
ball-base>2
sacr>2
strike-out>0

((ball-base + sacr) - a-bat) /
(one-base + two-base + three-base + home-run) =
rbis
trace(rbis)

Does this make any sence?:q:

Thanks for your help.

Hi,

I don’t really know much about XML, however there are some built in XML functions with flash MX at least.

You might find you have a problem using the ‘-’ as part of your variable name though. In your example how would the computer know that you don’t want to subtract two different variables from one another as opposed to them being one thing?

Just something to think about.

Liz