# progressBar class can only work with display objects?

**URL:** <https://forum.kirupa.com/t/progressbar-class-can-only-work-with-display-objects/258723>\
**Category:** Uncategorized\
**Created:** [April 27, 2008, 1:26pm UTC](https://forum.kirupa.com/t/progressbar-class-can-only-work-with-display-objects/258723 "2008-04-27T13:26:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![maloola](https://avatars.discourse-cdn.com/v4/letter/m/48db29/32.png) [@maloola](https://forum.kirupa.com/u/maloola)\
**Post date:** [April 27, 2008, 1:26pm UTC](https://forum.kirupa.com/t/progressbar-class-can-only-work-with-display-objects/258723/1 "2008-04-27T13:26:16Z")

</div>

I tried adding a progress bar to a flex application, showing the progress of a function.  
(i’m new to flex, not so new to flash…)

then i found out that the progress bar’s source can be a display object only… ☹ like so:  
progressBar = new ProgressBar();  
progressBar.source = loader (or image…)

do anyone knows a way to use progress bars in order to show the progress of a function?  
thanks.
