# Preloader freezing on browser refresh!

**URL:** <https://forum.kirupa.com/t/preloader-freezing-on-browser-refresh/284090>\
**Category:** Uncategorized\
**Created:** [March 15, 2009, 12:40am UTC](https://forum.kirupa.com/t/preloader-freezing-on-browser-refresh/284090 "2009-03-15T00:40:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![djgruber](https://avatars.discourse-cdn.com/v4/letter/d/f07891/32.png) [@djgruber](https://forum.kirupa.com/u/djgruber)\
**Post date:** [March 15, 2009, 12:40am UTC](https://forum.kirupa.com/t/preloader-freezing-on-browser-refresh/284090/1 "2009-03-15T00:40:16Z")

</div>

ok folks… I know AS3 can be a pain much of the time… and this one is frustrating me to heaven.  
i have a simple preloader in frame 1 (scene 1), and the rest of my movie in scene 2.  
the preloader is:

[SIZE=2][COLOR=red][COLOR=blue]//Import the required assets[/COLOR][/COLOR][/SIZE][COLOR=red]  
[SIZE=2]import flash.display.\*;[/SIZE]  
[SIZE=2][COLOR=blue]//Create a listener to call the loading function as the movie loads[/COLOR][/SIZE]  
[SIZE=2]this.loaderInfo.addEventListener (ProgressEvent.PROGRESS, PL\_LOADING);[/SIZE]

[SIZE=2]function PL\_LOADING(event:ProgressEvent):void {[/SIZE]  
[SIZE=2]var pcent:Number=event.bytesLoaded/event.bytesTotal\*100;[/SIZE]  
[SIZE=2]//Stretch the bar[/SIZE]  
[SIZE=2]lbar.scaleX=pcent/100;[/SIZE]  
[SIZE=2]//Display the % loaded in textfield[/SIZE]  
[SIZE=2]lpc.text=int(pcent)+"%";[/SIZE]

[SIZE=2]if(pcent==100){[/SIZE]  
[SIZE=2]lpc.text=“COMPLETE”;[/SIZE]  
[SIZE=2]this.nextFrame(); [/SIZE]  
[SIZE=2]}[/SIZE]  
[SIZE=2]}[/SIZE]  
[SIZE=2][COLOR=blue]//Stop the playhead while loading occurs[/COLOR][/SIZE]  
[SIZE=2]this.stop();[/SIZE][/COLOR]

The preloader works great, and the movie plays fine… EXCEPT if you hit refresh in IE7. it just shows the preloader bar frozen at 100%. and hangs. (it works fine in FireFox)

Does anybody know why this is happening??? :crying:

Thanks so much in advance!  
DJ :hat:
