[AS2] - Problem with loading XML file

[FONT=Georgia]I’m using this code to load an XML document.

[/FONT]


function gatherXmlData():Void    {
        var calendarData:XML = new XML();
        var currentCalendarData:Array = new Array();
        var inc:Number = new Number(0);
        
        calendarData.ignoreWhite = true;
        calendarData.load("http://localhost/curves/calendar/admin/calendar.xml");
        
        if (calendarData.onLoad)    {
            trace("bytes loaded " + calendarData.getBytesLoaded());
        }
    }

right now, i get this output:

bytes loaded 0

now, the file is in the folder because i don’t get an error, but it won’t load the file. at least it won’t load any of the nodes. :worried:

any help is definitely appreciated and will be noted in future encounters.