Here's some code I snipped out of one of my apps that uses the accordion.
I'm sure it can be simplified.
var childWidth:Number = 300;
var childHeight:Number = 200;
main_ac.setSize(300,400);
main_ac.createChild("View","latest",{label:" Posts"});
main_ac.createChild("View","latestComments",{label:" Latest Comments"});
main_ac.createChild("View","categories",{label:" Categories"});
main_ac.createChild("View","authors",{label:" Authors"});
main_ac.createChild("View","favorites",{label:" Favorite Entries"});
latest_lb = main_ac.latest.createChild("EnhancedDataGrid", "latest_lb");
latest_lb.setSize(childWidth,childHeight);
latestComments_lb = main_ac.latestComments.createChild("EnhancedDataGrid",
"latestComments_lb");
latestComments_lb.setSize(childWidth,childHeight);
categories_lb = main_ac.categories.createChild("EnhancedDataGrid",
"categories_lb");
categories_lb.setSize(childWidth,childHeight);
authors_lb = main_ac.authors.createChild("EnhancedDataGrid", "authors_lb");
authors_lb.setSize(childWidth,childHeight);
favorites_lb = main_ac.favorites.createChild("EnhancedDataGrid",
"favorites_lb");
favorites_lb.setSize(childWidth,childHeight);
On 3/11/06, Karthik <[EMAIL PROTECTED]> wrote:
>
> > I need to set up an accordion component but its the
> > first time that i deal with it, where can i learn how
> > to uset it in deep form?
>
> Have you checked the help files? I'm pretty sure it comes with a good
> example and a snippet or three.
>
> -K
> _______________________________________________
> [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
>
--
Mike
----------
http://www.mikebritton.com
http://www.mikenkim.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