• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

progress bar in air

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

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.

regards
Sujendra
 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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);
PopUpManager.centerPopUp(ttlWndw);
}

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

init(){
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.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic