A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: AS2 and XML connectivity....

  1. #1
    Spit
    Join Date
    Oct 2008
    Location
    Philly, PA
    Posts
    51

    Question AS2 and XML connectivity....

    Hi, I was wondering if anyone would know the AS2 required to direct a swf file to retrieve data from an XML file that is located 3 directories above the location of the swf file? I have gotten the swf to connect to it in a folder below it but not sure what is required to make it look back in directories above.

    Thanks,

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    Does this help?
    PHP Code:
    var directoryXML:XML = new XML();
    directoryXML.ignoreWhite true;
    directoryXML.load('../../../xmlFile.xml');
    directoryXML.onLoad = function(ok)
    {
        if (
    ok)
        {
            
    trace(directoryXML);
        }
        else
        {
            
    trace("couldn't find file");
        }
    }; 

  3. #3
    Spit
    Join Date
    Oct 2008
    Location
    Philly, PA
    Posts
    51
    Thanks! This worked great.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center