# Progress bar complete

**URL:** <https://forum.kirupa.com/t/progress-bar-complete/299676>\
**Category:** Uncategorized\
**Created:** [November 9, 2009, 3:29pm UTC](https://forum.kirupa.com/t/progress-bar-complete/299676 "2009-11-09T15:29:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![v8l57](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@v8l57](https://forum.kirupa.com/u/v8l57)\
**Post date:** [November 9, 2009, 3:29pm UTC](https://forum.kirupa.com/t/progress-bar-complete/299676/1 "2009-11-09T15:29:19Z")

</div>

I have a working progress bar. What i am having trouble with is playing the function “completeHandler” when the the file is loaded. How can i do this?

function completeHandler(event:Event):void {  
fileDisplay\_txt.text = “”;  
}

function progressHandler(event:ProgressEvent):void {

```
progressBar.width = Math.ceil(250*(event.bytesLoaded/event.bytesTotal));

```

}
