Sounds like your dynamic data should be an object of some sort - you
could always just set the data property of the vbox, then override the
set data function. Inside that override add the correct icon to the
control how you see fit based on the data you passed in...
override public function set data(value:Object):void
{
super.data = value;
//add the icon somehow - if you provide more details of your setup
we can give better advice here
var img:Image = new Image();
img.source = super.data.imageSrc;
this.addChild(img);
}
HTH,
Ryan
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of gridwest
Sent: Thursday, September 18, 2008 5: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
This message is private and confidential. If you have received it in error,
please notify the sender and remove it from your system.