This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Flex and the fly likes progress bar in air Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "progress bar in air" Watch "progress bar in air" New topic

progress bar in air

sujendra sugur

Joined: Mar 25, 2010
Posts: 12

i am new to flex and
any body tell me how to add a dynamic progress bar to a window.

the scenario folllowas as,

when ever i click a button on parent window a small new child window should open and progress bar should run implicitly .

Please help me and thanks in advance.

Sri Ps

Joined: Aug 23, 2011
Posts: 1
In the parent window do this:

protected var ttlWndw:TitleWindow;

protected function btn_click(evt:MouseEvent):void {
ttlWndw = new TitleWindow();
ttlWndw.title = "Spark TitleWindow title";
ttlWndw.width = 300;
ttlWndw.height = 200;
ttlWndw.addEventListener(CloseEvent.CLOSE, ttlWndw_close);
PopUpManager.addPopUp(ttlWndw, this, true);

In the small window/ title window in our case:
In the mxml place a progress bar component and in the action script place this:

bar.setProgress( <value>, <total>);

Not sure what are you trying to upload if its a file then you will need to pass the filesize into the small window and then dynamically get the percentile completed.

I agree. Here's the link:
subject: progress bar in air
It's not a secret anymore!