I've just been dealing with this in Flash 8 (AS 2).

 myAcc.setStyle('headerHeight',20);

I also had problems with header text - do a:

var headerObj:Object = myAcc.getChildAt(x);
for (var i:Object in headerObj){
  trace(i + " " myAcc[i])
}

Look at the defined values (and undefined) and use setStyle('blah',
value) to fill in what's missing. This is how I got it to work in AS
2. Also .labelPlacement='top' gave me the default centering for the
header label. Trying to do everything dynamically means you've got to
dot your i's and cross your t's :(

Good Luck

--- In [email protected], "nextadvantage" <[EMAIL PROTECTED]> wrote:
>
> Thanks jesterxl,
> 
> We got it working another way but your method is better, now can we
> adjust the height of the header?
> 
> --- In [email protected], "JesterXL" <@j...> wrote:
> >
> > This works.  My img is a 22x22 png.
> > 
> > <?xml version="1.0" encoding="utf-8"?>
> > <mx:Application 
> >  xmlns:mx="http://www.macromedia.com/2003/mxml";>
> >  
> >  <mx:Accordion width="100%" height="100%">
> >  
> >    <mx:Box label="Uno" 
> >     icon="@Embed('images/icons/control_checkbox.png')" />
> >    
> >    <mx:Box label="Dos" />
> >    
> >    <mx:Box label="Mutha-grabbin' Tres" />
> >  
> >  </mx:Accordion>
> >  
> > </mx:Application>
> > 
> > ----- Original Message ----- 
> > From: "nextadvantage" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Thursday, December 15, 2005 6:43 PM
> > Subject: [flexcoders] Accordion icons
> > 
> > 
> > Does anyone here have any sample code to display a icon/swf in the
> > header of a accordion all the samples I have googled for don't seem to
> > work.
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> > Yahoo! Groups Links
> >
>






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income homes are not online. Make a difference this holiday season!
http://us.click.yahoo.com/5UeCyC/BWHMAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to