Skip to main content
Participating Frequently
December 14, 2013
Question

Preloader not working in IE….

  • December 14, 2013
  • 2 replies
  • 3124 views

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

This topic has been closed for replies.

2 replies

December 30, 2013

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.

Ned Murphy
Legend
December 14, 2013

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?

adsparrowAuthor
Participating Frequently
December 15, 2013

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

Ned Murphy
Legend
December 15, 2013

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>