Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > Extensions and Plugins > Components

Thread Tools Rate Thread Display Modes
Old 07-27-2005, 12:43 AM   #1
Join Date: Jul 2005
Posts: 8
Default Dynamically Resizing List Components within Accordion Component

Hello all,

I am dynamically populating an accordion component with list components and then filling those lists with items from an XML file. I was hoping someone here has had experience with resizing the list components to be the exact size of the accordion child panes, knowing that that accordion child pane size may change depending on the XML. Is there a way to access the width and height values of the individual accordion child panes?

ActionScript Code:
prodXML.onLoad = function(success:Boolean) {     if (success) {         for (i = 0; i < this.childNodes.length; i++) {             var day = this.childNodes[i];             var list = prod_ac.createChild(mx.controls.List, day.attributes.name, {label:day.attributes.name});             list.setSize(100,100);             for (j = 0; j < day.childNodes.length; j++) {                 var job = day.childNodes[j];                 var todo:String = job.attributes.project + list.addItem(job.attributes.project + " - " + job.attributes.task + " - " + job.attributes.hours + "h");             }         }     }     //     prod_ac.selectedChild = prod_ac[day_str]; };

If i can be clearer, please let me know. Any help is much appreciated.

Last edited by digitaria; 07-27-2005 at 12:47 AM.
digitaria is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:32 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.