flex - Find out deselected item in spark list with multiple selection -


In a spark list I could find out which item was selected by using the change event Or remove the mark of right. and oldIndex keeping this information

t work now because newIndex and oldindex can still reference the indices of the selected elements.

A solution changes selected indix vector to another variable and after the change in selection, compares this variable with selected indices But it appears to be some complicated.

Does anybody know that some other elements are still selected, while the index / object is a user unselected

You will need to store selected indies and compare the difference.

  Private Static Function Search Missing (ar1: Array, ar2: Array): Array {var unavailable: Array = []; For each (var item: object in AR1) {if (ar2.indexOf (item) <0) miss.push (item); } Missing return; }  

Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -