get equation from XML, AS3

Posted by VideoDnd on Stack Overflow See other posts from Stack Overflow or by VideoDnd
Published on 2010-03-23T21:14:36Z Indexed on 2010/03/23 21:43 UTC
Read the original article Hit count: 461

Filed under:
|
|

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>

© Stack Overflow or respective owner

Related posts about flash

Related posts about Xml