Daniel Daniel - 2 months ago 14
ActionScript Question

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

Answer

Simply use removeItemAt():

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