get equation from XML, AS3
- by VideoDnd
There's an variable in my swf I want to receive XML. It's an integer value in the form of an equation. How do I receive the XML value for 'formatcount'?
My Variable
//Variable I want to grab XML<br>
//formatcount=int('want xml value to go here');
formatcount=int(count*count/100);
Path
formatcount = myXML.FORMATCOUNT.text()
My XML
<?xml version="1.0" encoding="utf-8"?>
<SESSION>
<TIMER TITLE="speed">1000</TIMER>
<COUNT TITLE="starting position">10000</COUNT>
<FORMATCOUNT TITLE="ramp">count*count/1000</FORMATCOUNT>
</SESSION>