Create a custom component and repeat that.  Pass in the entire
currentItem, via a setter function.

 

There are timing issues to keep in mind.  If you do not have repeater
set to recycleChildren, then you can use creationComplete to directly
set the source of your images to the value in the current item.  If you
do, or might use recycling, you can create a bindable var, bind the
Image source to that, and then set that var in the setter function.  The
binding should ensure that your image source property is set when it has
a value.

 

The setter function will be called before creationComplete, so you can't
directly assign the source in the setter.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of gridwest
Sent: Thursday, September 18, 2008 8:49 PM
To: [email protected]
Subject: [flexcoders] dynamic icons while using Repeater

 

Hi,

I'm trying to use dynamic icons on a vBox inside an Accordion and am 
stuck. I want to load a specific icon based on the dynamic data i'm 
using. Has anybody got any ideas?

cheers

 

Reply via email to