actionscript love

Out of context: Reply #1

  • Started
  • Last post
  • 5 Responses
  • lucyGeneric0

    Hey (L) u wanna do summin like below.

    Make sure the LoadVars object has onData not onLoad - its a way to circumvent Flash Parsing the data & subsequently trying to typecast it into some URL encoded whoose yer daddy.

    ////////////////////////////////...

    var myLoadOBJ:LoadVars = new LoadVars();
    myLoadOBJ.parent = this; // or whtva parent
    myLoadOBJ.onData = function(resultset){
    this.parent.process_text(results... };
    myLoadOBJ.load("myFile.txt");

    function process_text(textFile){
    this.createTextField("myText",0...
    myText.styleSheet.load("myStyles...
    myText.html = true; myText.wordWrap = true;
    myText.htmlText = textFile;
    }

View thread