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>=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.