Valhalla Legends Forums Archive | Web Development | [actionscript] loadVars

AuthorMessageTime
RyanIdium
im using this code to get info from my website, the page returns
[code]
t=whatever html it wants to
[/code]
the problem is, is that i can't get it to display on my dynamic textbox, with html and multiline enabled.
[code]
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;
   }
}
[/code]

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

Search