Hey Sascha,

Try to compile and use my example.  Just create a new Flex Project.
Maybe you ran into a debug error. Please be sure that all your debug
sessions have stopped in the debugger by pressing the red square button.

Sometimes I have to restart my Builder in order to get rid of those compile
time errors.

Good luck ; )
Bram

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
[Bindable]
private var collection:ArrayCollection = new ArrayCollection([{first:
'Matt', last: 'Matthews'},{first: 'Matt', last: 'Matthews'},{first: 'Matt',
last: 'Matthews'},{first: 'Matt', last: 'Matthews'},{first: 'Matt', last:
'Matthews'},{first: 'Matt', last: 'Matthews'},{first: 'Matt', last:
'Matthews'}]);
private function resetProvider():void
{
collection = new ArrayCollection();
collection = new
ArrayCollection([{first:'John'},{first:'John'},{first:'John'},{first:'John'},{first:'John'},{first:'John'},{first:'John'},{first:'John'},{first:'John'},{first:'John'},]);
}
]]>
</mx:Script>
<mx:TileList id="list" dataProvider="{collection}" height="250" width="300"
maxColumns="2" rowHeight="225" columnWidth="125" labelField="first"/>
<mx:Button click="resetProvider();" label="Reset"/>
</mx:Application>

Reply via email to