you can do some minor math using a few Accordion properties (numChildren,
headerHeight and width/height)

then you can simply do..
var w:Number = accInst.width;
var h:Number = accInst.height - (accInst.headerHeight*accInst.numChildren);
getChildAt(index).setSize(w,h);

that should resize the child at "index" to the width of the accordion and
height of the accordion minus the hieght of all the headers.

Cheers,
Ryan

On 2/10/06, j.c.wichman <[EMAIL PROTECTED]> wrote:
>
> Hi,
> I'm trying to find some more info on accordions and especially how to let
> the children of the accordion know how much space they have. Another thing
> I
> ran into was, that adding a scrollpane through
> myAcc.createChild(mx.containers.ScrollPane, .... Seemed to create errors
> (white headers, messages that content could not be loaded etc)...
>
> Any advice on these 2 issues would be appreciated.
>
> Greetz
> Hans
>
>
> ________________________________
>
>
> J.C. Wichman . Software Engineer
> Tel. +31 (0)53 - 48 00 472
> [EMAIL PROTECTED]
> www.TriMM.nl
> TriMM interactieve media . PO Box 1208 . 7500 BE Enschede . The
> Netherlands
> Oldenzaalsestraat 141-143 . tel +31 (0)53 - 48 00 480 . fax +31 (0)53 - 43
> 53 027
>
>
> _______________________________________________
> [email protected]
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to