Here is my XML layout:
Actionscript Code:
<xml>
   <seriesA>
      <chart_form>
         <total_return>75.41%</total_return>
      </chart_form>
   </seriesA>
</xml>

I usually do this:

Actionscript Code:
function ParseSeriesData(seriesInput:XML):void {
    stats.htmlText = seriesInput.seriesA.chart_form.total_return;
}

But I want to do something like this:
Actionscript Code:
var mynode:String = "seriesA";

function ParseSeriesData(seriesInput:XML):void {
    stats.htmlText = seriesInput.mynode.chart_form.total_return;
}

Thanks in advance.