When I use the following Action Script to pull the variable ‘leaguename’, which has the value “flashtest”, from my ASP page and insert the value into my ListBox called ‘playerlist’, the text ‘_level0.leaguename’ is written in the ListBox instead of ‘flashtest’.
myData = new LoadVars();
myData.onLoad = function() {
leaguename.text = this.leaguename;
};
myData.load(“livedraftvar.asp”);
playerlist.addItem(leaguename);
The output from my ASP page is: &leaguename=flashtest&
What am I doing wrong? Everything looks right to me.