flash: text preloader

Out of context: Reply #2

  • Started
  • Last post
  • 5 Responses
  • pkny0

    thx arch.

    i tried this and its' giving me hell.. i'm trying to make a laod status.. but getoadedbytes dont return values.. i have a feelling i've placed in the wrong location..

    data = new LoadVars();
    data.load("text.txt");
    data.onLoad = function(a){

    if (a) {
    textbox.htmlText = this.text;
    debug.htmlText = this.debug;
    debug.htmlText = "GOOD";
    //debug.htmlText = data.getBytesLoaded() + " / " + data.getBytesTotal()

    gotoAndPlay(3);
    } else {

    debug.htmlText = "HELP" ; //data.getBytesLoaded() + " / " + data.getBytesTotal()
    //gotoAndPlay(2);

    }

    };

View thread