I have a list, which has been populated fine. However, when I try to select the first or second list item, it skips to the last one in the list. You cannot select any other item, as it just skips straight to the last one.
Any ideas what’s going on? The event listener appears to be working, but i’ll put the code up anyway, as someone may find it helpful.
Thanks for your time.
var newsListener:Object = new Object();
listNews.addEventListener("change",newsListener);
newsListener.change = function(){
if (listNews.selectedIndex = 0){txtNews.htmlText = (PageText.news0)};
if (listNews.selectedIndex = 1){txtNews.htmlText = (PageText.news1)};
if (listNews.selectedIndex = 2){txtNews.htmlText = (PageText.news2)};
};