Unfortunately, accordion headers must be buttons and buttons don't like having buttons as children. (Checkbox is a Button) Not my favorite thing about Accordion... Anyway, my approach would be to add children to the rawChildren of accordion and float them over the headers. I successfully prototyped that for TabNav a while ago, although I can't find the code...
________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Stephen Roy J. Tang Sent: Friday, August 31, 2007 6:54 PM To: [email protected] Subject: [flexcoders] Custom components as headerRender? Hi there, I've been trying to make a custom header renderer for an accordion...basically, what I want is to have the accordion label + an additional button on the accordion header Initially I tried something like: <mx:Accordion> <mx:headerRenderer> <mx:Component> <mx:Canvas> <mx:Label /> <mx:Button /> </mx:Canvas> </mx:Component> </mx:headerRenderer> [...accordion contents...] </mx:Accordion> But the above structure gave me an error like "Error #1034: Type Coercion failed: cannot convert [EMAIL PROTECTED] to Button" What restrictions are there as to what I can declare inside the mx:headerRenderer tag? If I use simple components like checkboxes it seems fine, i.e. the following is ok: <mx:Accordion> <mx:headerRenderer> <mx:Component> <mx:CheckBox /> </mx:Component> </mx:headerRenderer> [...accordion contents...] </mx:Accordion> Thanks a lot :)

