XML Variable String to Numeric conversion
This code can be used with Eyeblasters polling system, or any stanalone XML feeds.
//ActionScript code
//XML code
//Referance
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary621.html
http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001201.html
//ActionScript code
//XML Variable String to Numeric conversion//by kurt.grung 3l3373.com//
xml = new XML();
xml.ignoreWhite = true;
xml.load('data.xml');
//
xml.onLoad = function(){
nodeX = this.firstChild.firstChild.nextSibling.childNodes;
lenX = nodeX.length;
trace('XML vars\n---');
for(var n=0; n!=lenX; n++){
numX = parseInt(nodeX[n].attributes.counter);
_level0['celebTextbox'+n] = numX;
trace('celebTextbox'+n+' = '+numX);
}
trace('\n');
sortX();
};
//
//XML code
2004-10-20 19:11:36.180
//Referance
http://www.adobe.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary621.html
http://livedocs.adobe.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001201.html
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home