# Preloader stops when Refresh button is hit on IE6

**URL:** <https://forum.kirupa.com/t/preloader-stops-when-refresh-button-is-hit-on-ie6/294843>\
**Category:** flash\
**Created:** [August 20, 2009, 8:31pm UTC](https://forum.kirupa.com/t/preloader-stops-when-refresh-button-is-hit-on-ie6/294843 "2009-08-20T20:31:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maddug](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@Maddug](https://forum.kirupa.com/u/Maddug)\
**Post date:** [August 20, 2009, 8:31pm UTC](https://forum.kirupa.com/t/preloader-stops-when-refresh-button-is-hit-on-ie6/294843/1 "2009-08-20T20:31:09Z")

</div>

Hi All,

I have a Flash animation that uses a preloader with this code on frame 1

```auto
stop();

this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, onProgress);
this.loaderInfo.addEventListener(Event.COMPLETE, onComplete);

function onProgress(e:ProgressEvent):void
{
    var loaded:Number = e.target.bytesLoaded;
    var total:Number = e.target.bytesTotal;
    var pct:Number = loaded/total;
    loader_mc.scaleX = pct;
    loaded_txt.text = "Loading... " + (Math.round(pct * 100)) + "%";
}

function onComplete(e:Event):void
{
    gotoAndPlay(2);
}

```

When I view the webpage with the animation on it, it preloads fine the first time. But when I hit the refresh button on IE6 it goes back to frame 1 with the bar already full and doesn’t move on. If I right click the animation and hit play then it moves onto frame 2 and plays fine.

I don’t have this issue with the refresh on Firefox. It plays it no problem.

Does anyone have any ideas why it’s not firing?

Thanks!
