Thank you for your help, I finally use this solution :
(In my ItemRenderer)
public override function set data(_data: Object): void {
removeAllChildren();
var child: DisplayObject;
if (_data is A)
child = addChild(new AItemRenderer());
else if (_data
I guess the best way of handling this would be to
have a generic itemRenderer and load the corresponding components inside it,
depending on a data value passed to the List dataProvider.
That's how i would do it.
You can also do it in the List container via
actionScript if you want, by
BTW, David, are you from France ?
If so, are you aware of the creation of the French
Flex Community ?
http://www.flexeurs.org
If you are interested, come say hello.
Jean-Luc ESSER
http://www.flexeurs.org
- Original Message -
From:
ROUSSELIE David ROSI/SIFAC
To:
How about using an itemRenderer with states and setting the state
dependent on the type of data?
Cheers,
Ralf.
On 7/12/06, ROUSSELIE David ROSI/SIFAC [EMAIL PROTECTED] wrote:
Hi,
I would like to use the List component with different type of data in
its dataProvider and adapt each
4 matches
Mail list logo