• Welcome to Valhalla Legends Archive.
 

[actionscript] loadVars

Started by RyanIdium, December 16, 2003, 09:21 PM

Previous topic - Next topic

RyanIdium

im using this code to get info from my website, the page returns

t=whatever html it wants to

the problem is, is that i can't get it to display on my dynamic textbox, with html and multiline enabled.

userData = new LoadVars();
response = new LoadVars();
response.onLoad = getResponse();
userData.sendAndLoad("script.php", response, "GET");

function getResponse(result){

   if(result == true)
   {
      _root.chat.htmlText = "<font size='2'>hey</font>";
   } else {
      //_root.chat.htmlText = "<font size='4'>Error Connecting To Server</font>";
      _root.chat.text = result.t;
   }
}


EDIT: oh, it also seems that if the result is there, it skips to false.  perhaps if (result.t == true) ?