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
Software development tool Software development Software development services
Home design software Software development company


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to