Search code examples
actionscript-3apache-flexactionscriptflex4.5

Removing items from a TileList Flex actionscript


How to remove only one item in my Tile List ?

I did this...

tileList.dataProvider.removeAll();

but I want to remove one specific item...not all of them


Solution

  • Simply use removeItemAt():

    var i = 2; // or whatever indexed item you actually need to remove
    tileList.dataProvider.removeItemAt(i);