listHandler

compsci

Born

Posts: 2

3+ Months Ago

Hello all,

I am really stuck and i am quite new to actionscript. I am trying to delete values from a listbox, depending on which is selected using a button. This is my code, but it doesn't work. It isn't deleted from list! WHY?!

function deleteArchive(){
editList(archiveView_tx.text, "removeOne");
// calls the function on the ASC called delStream, send over the name of the flv
client_nc.call("delStream", null, archiveView_tx.text);
archiveView_tx.text = "";
}

function listHandler(component){

archiveView_tx.text = listMC.getSelectedItem().label;

}

listMC.setChangeHandler( "listHandler" );

function deleteArchive(){

editList(archiveView_tx.text, "removeOne");

// calls the function on the ASC called delStream, send over the name of the flv