I think you've actually stumbled on a bug that I submitted a couple months ago -- where the icon set in the last accordion header gets applied to all previous headers, or something like that. I narrowed it down to a reproducible test case, and I believe Adobe was able to fix it (as part of the upcoming 2.0.1 release).
I don't have that test case anymore, but it sounds like exactly the same thing I ran into when I filed the bug. I don't remember if there was a workaround or not... sorry. -d dorkie dork from dorktown wrote: > > Er, I created a simplified example and got that to work. So there must > be some gremlins in my code somewhere. I checked the source and did > not see an iconFunction. > > On 12/13/06, * dorkie dork from dorktown* > <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Does the Accordion have an iconFunction? Similar to the > iconFunction used in the Tree and List controls. > > For example, this code is supposed to set the icon for headers 0 > and 1 but each statement sets the icon across all headers. > > [Bindable] > [Embed(source="images/Company-Icon.png")] > public var companyIcon:Class; > > [Bindable] > [Embed(source="images/Market-Icon.png")] > public var marketIcon:Class; > > // in init > navigationMenu.getHeaderAt(0).setStyle('icon', companyIcon); > navigationMenu.getHeaderAt(1).setStyle('icon', marketIcon); > > > >

