[as2][flash 8] loadvar success failure

Hi peeps,

So…I think this is my first post on here and as first posts go I’m sure you guys can pick on me for asking already asked questions. But hopefully I’ll ask it in that special way that provides a new spin on it.

I’m having a problem with loading a text file into the animation with 100% success. If you go to www.talkingdog.tv on the front page I have a grid schedule thing-a-ma-bob that grabs a bunch of variables in a &mon2pm=pup& formate. I loads fine on my computer and had worked fine for some time on our test site. So…I use the onLoad function and draw the grid if successful and and try to reload if not.

I was trying to simply reload the text document by calling load(“blah.txt”) but it never seems to grab the variables after it’s gone down the failure path.
Here is the slighty stripped down version:


loadText.onLoad = function(success) {    
    var count = 0;
    var wait = 0;
    
    if(success){
        
        while(loadText.getBytesLoaded() < loadText.getBytesTotal()  ){
            showtitle.text = "waiting:" + wait++;
        }
        
       for( var prop in this ) {

            tArray[count] = new Array(prop, this[prop] );           
            count++;
        }

        
        loadShowGrid();
        drawShowGrid();
        
    } else {
        reloadVars(); 
    }
}