# Could someone show me why my preloader isnt working

**URL:** <https://forum.kirupa.com/t/could-someone-show-me-why-my-preloader-isnt-working/242256>\
**Category:** flash\
**Created:** [October 24, 2007, 4:08am UTC](https://forum.kirupa.com/t/could-someone-show-me-why-my-preloader-isnt-working/242256 "2007-10-24T04:08:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Modboy](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Modboy](https://forum.kirupa.com/u/Modboy)\
**Post date:** [October 24, 2007, 4:08am UTC](https://forum.kirupa.com/t/could-someone-show-me-why-my-preloader-isnt-working/242256/1 "2007-10-24T04:08:52Z")

</div>

i can send u my fla.

my script is:

stop();  
root.loaderInfo.addEventListener(ProgressEvent.PROGRESS, progressHandler);  
function progressHandler(myevent:ProgressEvent):void {  
var myprogress:Number=myevent.target.bytesLoaded/myevent.target.bytesTotal;  
trace(myprogress)  
bar\_mc.scaleX=myprogress  
myTextField\_txt.text = Math.round(myprogress\*100)+"%"  
}  
root.loaderInfo.addEventListener(Event.COMPLETE, finished);  
function finished(myevent:Event):void {  
play()  
}

my content starts from frame 2. pre loader and instance of progress bar, “bar\_mc” and also dynamic text field, “myTextField\_txt” is in frame 1. The script starts from frame 1 in actions layer.

it basically freezes on progress bar and doesnt play rest of my movie.

thanks for any help
