xml and external swf documents
        Posted  
        
            by VideoDnd
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by VideoDnd
        
        
        
        Published on 2010-03-13T17:27:05Z
        Indexed on 
            2010/03/13
            17:35 UTC
        
        
        Read the original article
        Hit count: 331
        
My XML scripts work fine in the local swf. If I load an external swf, can I still retreive XML data from the same way, or do I have to declare the root somewhere?
It's a general question. I know that when animating external swf files, you have to set it up differently, if so I would like an example, and a pitcher of beer. It's St. Patrick's weekend.
SAMPLE CODE ONLY
XML
<?xml version="1.0" encoding="utf-8"?> 
<SESSION> 
    <COUNT TITLE="starting position">-77777</COUNT> 
</SESSION>
loader swf 'nodes'
//grab the data as a string 
myString = myXML.COUNT.text(); 
//grab the data as an int 
count = int(myXML.COUNT.text()); 
external swf 'variables'
var myString:String = "";        
var count:int = int(myString); 
    trace(count);
© Stack Overflow or respective owner