# SWF will not play again in same IE browser window issue

**URL:** <https://forum.kirupa.com/t/swf-will-not-play-again-in-same-ie-browser-window-issue/310779>\
**Category:** flash\
**Created:** [June 18, 2010, 8:25pm UTC](https://forum.kirupa.com/t/swf-will-not-play-again-in-same-ie-browser-window-issue/310779 "2010-06-18T20:25:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![matrixm5](https://avatars.discourse-cdn.com/v4/letter/m/cab0a1/32.png) [@matrixm5](https://forum.kirupa.com/u/matrixm5)\
**Post date:** [June 18, 2010, 8:25pm UTC](https://forum.kirupa.com/t/swf-will-not-play-again-in-same-ie-browser-window-issue/310779/1 "2010-06-18T20:25:21Z")

</div>

Hello All,

I have a problem and that is my swf will only play once in IE. When a user revisits the site from the same IE browser window or refreshes, nothing happens. If i open a new IE browser window, the swf plays and it plays from the IE cache as the preloader does not show again. This is happening in multiple versions of IE. I do not have this problem with Fire Fox, Chrome, or other non-IE browsers.

Here is my preloader code:  
loaderInfo.addEventListener(ProgressEvent.PROGRESS,updatePreloader);

function updatePreloader(evtObj:ProgressEvent):void

{  
var myFont:Font = new Font1();  
var textFormat:TextFormat = new TextFormat();  
textFormat.font = myFont.fontName;  
preloader\_txt.autoSize = TextFieldAutoSize.NONE;  
preloader\_txt.defaultTextFormat = textFormat;  
preloader\_txt.embedFonts = true;  
preloader\_txt.antiAliasType = AntiAliasType.ADVANCED;  
preloader\_txt.blendMode = BlendMode.LAYER;  
preloader\_txt.alpha = .5;  
var percent:Number=Math.floor((evtObj.bytesLoaded\*100)/400000);  
preloader\_txt.text = percent+" ";

```
if (percent&gt;=100) {
	
	loaderInfo.removeEventListener(ProgressEvent.PROGRESS,updatePreloader);
	this.gotoAndPlay(2);
	
}

```

}

I am using swfobject when publishing. I do not think this is the problem as when i publish straight from flash without swfobject and try to play my swf in the same IE browser window, the same problem occurs.

Can someone please help me with this. I have been going nuts with this.
