First you are not doing the repeater quite right.  Try this:

<mx:Repeater dataProvider="{_main._newss}" id="newsRepeater">
<mx:Label text="{newsRepeater.currentItem.myProperty}"/>
</mx:Repeater>

 

The currentItem propeerty already holds a reference to the dataProvider
item that is generating the current repeater instance.

 

Second, the Label needs a text value, which will be one of the
properties on your dataProvider item objects.

 

Tracy

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thierrybertossa
Sent: Tuesday, March 27, 2007 5:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Error: Repeater is not executing.

 

I have a repeater:

<mx:Repeater dataProvider="{_main._newss}" id="newsRepeater">
<mx:Label text="{_main._newss.getItemAt(newsRepeater.currentIndex)}"/>
</mx:Repeater>

_newss, is an instance of a custom Newss Class extends ArrayCollection.

When I change _newss like this:
_newss = new Newss();

I have an error:
Error: Repeater is not executing.

Is there a way to dynamically change repeater's Dataprovider without 
having this kind of probleme.

Thanks 
Thierry

 

Reply via email to