BTW, David, are you from France ?
If so, are you aware of the creation of the French Flex Community ?
 
If you are interested, come say hello.
 
Jean-Luc ESSER
 
 
----- Original Message -----
Sent: Wednesday, July 12, 2006 2:28 PM
Subject: [flexcoders] Dynamic ItemRenderer


Hi,

I would like to use the List component with different type of data in
its dataProvider and adapt each itemRenderer depending on the type of
the data item :

var dp: Array = [new A(), new B()]
...
<mx:List dataProvider="{dp}" ... />

How can I use a "AItemRenderer" to handle A data type elements and
"BItemRenderer" to handle B data type elements ?

Thanks,

--
David Rousselie

********************************
Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de
ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.
Tout message electronique est susceptible d'alteration. Le Groupe France Telecom decline toute responsabilite au titre de
ce message s'il a ete altere, deforme ou falsifie.
Si vous n'etes pas destinataire de ce message, merci de le detruire immediatement et d'avertir l'expediteur.
*********************************
This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorised
use or dissemination is prohibited.
Messages are susceptible to alteration. France Telecom Group shall not be liable for the message if altered, changed or
falsified.
If you are not the intended addressee of this message, please cancel it immediately and inform the sender.
********************************

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to