Copy link to clipboard
Copied
Hi All,
Here is my code:
stop();
var preLoaderPercent:Number;
this.loaderInfo.addEventListener(Event.COMPLETE, loadComplete);
this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, loadProgress);
function loadComplete(e:Event) {
this.loaderInfo.removeEventListener(Event.COMPLETE, loadComplete);
this.loaderInfo.removeEventListener(ProgressEvent.PROGRESS, loadProgress);
play();
}
function loadProgress(e:ProgressEvent):void {
preLoaderPercent = Math.floor((e.bytesLoaded / e.bytesTotal)*100);
loader_txt.text = preLoaderPercent + "%";
}
loader_txt shows the percent loaded fine in Safari, Firefox and Chrome but in IE it doesn't show the percent loaded, it just all of a sudden starts playing the movie. I've cleared the cache in IE as well....
I've also tried using enterFrame instead and that does exactly the same thing in IE.
Any help greatly appreciated....
Copy link to clipboard
Copied
Problems across browsers usually stem from the html embedding code in the web page. Do you have a link to the page or can you show that code?
Copy link to clipboard
Copied
<body>
<div id="con">
<div id="flashContent">
<object type="application/x-shockwave-flash" data="tooneat.swf" width="1280" height="580" id="tooneat" style="float: none; vertical-align:middle">
<param name="movie" value="tooneat.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</object>
</div>
</div>
</body>
Copy link to clipboard
Copied
BAsed on the embedding code that CS6 produces for me when I publish it using Flash, your code appears to be missing the portion for IE. HEre is an example of what CS6 publishes for me, where you can see that your code only includes the !IE (not IE) portion...
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="975" height="620" id="photoViewer" align="middle">
<param name="movie" value="photoViewer.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="photoViewer.swf" width="975" height="620">
<param name="movie" value="photoViewer.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
Copy link to clipboard
Copied
I'm using Flash CC and when i publish it does not include the code for IE only the code i showed you. Is there a setting i'm mising or something?
Copy link to clipboard
Copied
Try starting over in Dreamweaver and just adding the swf there. It does a fairly good job with these things.
Copy link to clipboard
Copied
Hi Amy,
I started over using Dreamweaver and here is my code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>TooNeat Studios :: Advanced Digital Media</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body {
height:100%;
background-color: #000000;
}
body {
overflow:hidden;
margin-top: 0px;
}
#con {
position: relative;
}
#flashContent {
position: absolute;
left:50%;
margin-left:-640px;
}
</style>
<script src="swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
swfobject.registerObject("tooneat", "11.9.900", "expressInstall.swf");
</script>
</head>
<body>
<div id="con">
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1280" height="580" id="tooneat" align="middle">
<param name="movie" value="tooneat.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="tooneat.swf" width="1280" height="580">
<param name="movie" value="tooneat.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</div>
</body>
</html>
Still have exactly the same issue, when viewed in Firefox, Chrome and Safari my preloader shows the % of the file loading but when viewed in IE it doesn't show the %, it just shows an all black screen then once the file loads it starts playing my movie....
Copy link to clipboard
Copied
Hi Ned,
Now I have this code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1280" height="580" id="tooneat" align="middle">
<param name="movie" value="tooneat.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="tooneat.swf" width="1280" height="580">
<param name="movie" value="tooneat.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
and i'm still having the same issue:
loader_txt shows the percent loaded fine in Safari, Firefox and Chrome but in IE it doesn't show the percent loaded, it just all of a sudden starts playing the movie.
Copy link to clipboard
Copied
Hi Ned,
I've embedded my swf using swfObject 2, my preloader shows up fine in Firefox, Chrome and Safari but when viewed in IE the preloader doesn't show up....there is just a pause and once the movie has loaded it starts to play.
This is my latest code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>TooNeat Studios :: Advanced Digital Media</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="screen">
html, body {
height:100%;
background-color: #000000;
}
body {
overflow:hidden;
margin-top: 0px;
}
#con {
position: relative;
}
#flashContent {
position: absolute;
left:50%;
margin-left:-640px;
}
</style>
<script src="swfobject_modified.js" type="text/javascript"></script>
<script type="text/javascript">
swfobject.registerObject("tooneat", "11.9.900", "expressInstall.swf");
</script>
</head>
<body>
<div id="con">
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="1280" height="580" id="tooneat" align="middle">
<param name="movie" value="tooneat.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="tooneat.swf" width="1280" height="580">
<param name="movie" value="tooneat.swf" />
<param name="quality" value="best" />
<param name="bgcolor" value="#000000" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
</div>
</body>
</html>
Copy link to clipboard
Copied
Do you have any RSL's loading (for instance, are you using TLF text)?
Copy link to clipboard
Copied
I don't think i am....
I do embed a particular font style when i publish the swf....
Would that make a difference?
Copy link to clipboard
Copied
See if that's the case by trying a textfield with no special font/dressing - just make sure the text color is visible against the background it sits over.
Copy link to clipboard
Copied
I tried not embedding the font and same problem still there. One more thing I did find out is that I don't have this issue with previous versions of IE, seems only to happen in IE 11....
Copy link to clipboard
Copied
If you have TLF text on any text field, it will cause that RSL to download. There were several Flash versions where TLF was the default (before they deprecated it :-p). So if you didn't make a special effort to select "classic text," chances are high that you did use TLF text somewhere.
Click on a text field and see if the first combobox in the "Properties" panel says "TLF text." If it doesn't that doesn't mean that none of your text fields have TLF text, but if it does it means that you are definitely using TLF text.
Copy link to clipboard
Copied
I've checked, and I'm not using TLF text on any text field....
Copy link to clipboard
Copied
Hmn, I'm not sure then. There may be other things you can do (Inverse Kinematics may be one thing) that will make RSL's load without any user action, but I don't know what they are.
Also, are you using IE 11? I think it disables some features of older Flash player versions, so to get full functionality in IE11 you may need to install the latest player even if you're only targeting an older version.
Copy link to clipboard
Copied
Hey- if you still have issues on flash runtime ,would you pls log a bug to
https://bugbase.adobe.com/, thanks.
When adding the bug, please include sample code and the exactly browser(version) you used so we can quickly test this out internally. If you would like to keep this private, feel free to e-mail the attachment to me (jiyuan@adobe.com) directly and I will attach it to the bug for internal use only.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now