if it is the last child.
Add ControlBar instance in the last.. It seems, you are doing the same...
-abdul
I'm creating a popup with a progress bar and a cancel button, I want to add a controlBar container, but it's not padding the width of the container properly, any help would be great.
Below is the code:
progressStatus = PopUpManager.createPopUp(Container(Application.application), TitleWindow, true);
progressStatus.width = 300;
progressStatus.styleName = "opaquePanel";
progressStatus.title = 'Download in Progress:';
bar.mode = 'manual';
bar.label = 'Loading ' + currentIndex + ' of ' + totalOrders + '...';
btnCancel.addEventListener(MouseEvent.CLICK, cancel);
btnCancel.enabled = true;
btnCancel.label = 'Cancel';
var ctrlBar:ControlBar = new ControlBar();
ctrlBar.percentWidth = 100;
ctrlBar.addChild(btnCancel);
progressStatus.addChild(ctrlBar);
progressStatus.addChildAt (bar, 0);
PopUpManager.centerPopUp(progressStatus);
PopUpManager.bringToFront(progressStatus);
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
![]()
SPONSORED LINKS
Web site design development Computer software development Software design and development Macromedia flex Software development best practice
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
__,_._,___
Reply via email to

