This content has been marked as final. Show 4 replies
I don't really understand why you want to put the event.type into that variable.
Seems to me that if you want to use the event, you could use event.type.toString();
You created a variable to hold a Text object:
private var forChange:Text;
But you never created the Text object:
forChange = new Text();
I think you got the error because the " forChange" text class didn't get initialized.
try this in your function:
forChange= new Text()
Thanks a lot for your inputs on this issue. When I created the text object with addchild() the error is resolved.
But now, as I change the list items from one item to under in the combo box. it displays the selectedindex at the top left corner of the webpage. like say if I select the country "United States" from the list of countries, it displays the 2 at top left corner which is the list item #2 in the list(Index=2).
Is there anyway I can supress this index number from displaying ?