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]>
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);