SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    .swf file not always playing in ie9

    i am new to completly css web design after previously using a lot of tables in html. everything went fine untill i had to create a seperate css file for ie!! for the most part it all went fine after lots of tinkering but the swf file on my index page

    1st touch football coaching

    wont load everytime on ie, works fine on all other browsers, it does occasionally load so im pretty sure the code is correct,

    Code:
    <object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="390" height="240">
            <param name="movie" value="img/1st-touch.swf" />
            <param name="quality" value="high" />
            <param name="wmode" value="opaque" />
            <param name="swfversion" value="9.0.45.0" />
            <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you donít want users to see the prompt. -->
            <param name="expressinstall" value="Scripts/expressInstall.swf" />
            <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
            <!--[if !IE]>-->
            <object type="application/x-shockwave-flash" data="img/1st-touch.swf" width="390" height="240">
              <!--<![endif]-->
              <param name="quality" value="high" />
              <param name="wmode" value="opaque" />
              <param name="swfversion" value="9.0.45.0" />
              <param name="expressinstall" value="Scripts/expressInstall.swf" />
              <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
              <div>
                <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
                <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
              </div>
              <!--[if !IE]>-->
            </object>
            <!--<![endif]-->
          </object>
    i dont have another machine to test it on to see if its my browser? but when i load the swf direct through

    http://1sttouchfootballcoaching.com/.../1st-touch.swf


    it loads every time so i guess the flash player and browser are ok.

    any suggestions please??

    ps i did try adding it as a html file but that took forever to load!

    Martin

  2. #2
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,547
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    You're getting a 404 response from the server for styleie.css
    You should have a look at optimising the images in your swf - the images are full screen size but then displayed at a few 100 pixels, there's no need for massive high res images embedded that are giving you a 1mb+ filesize

  3. #3
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, makes sense, ill try it out and let you know how it goes?
    so how come its fine with firefox and other browsers but not ie?

    thanks

  4. #4
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so........... i tried it and it does work for the most part, but still occasionally doesnt load.
    which is better than before. It used to load say 1 in 10, it now loads about 4 in 5.

    I reduced the swf file down from a whopping 1.4mb to 236kb. so that did seem to be the problem but has not rectified fully. Does that mean i would need to reduce further? 236kb doesnt sound big to me.

    Also could you explain how you were able to work out that it was getting a 404 response, so i can perhaps work it out without troubling you further.

    many thanks for your help so far.

    Martin

  5. #5
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,547
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    I ran your URL through the browser while watching an http monitor (in my case charles web debugging proxy, but there are various other free options such as fiddler web debugger)

  6. #6
    Community Advisor silver trophy

    Join Date
    Nov 2006
    Location
    UK
    Posts
    2,547
    Mentioned
    40 Post(s)
    Tagged
    1 Thread(s)
    I'd embed the swf using swfobject, it's the most consistent method

  7. #7
    SitePoint Member
    Join Date
    Jul 2011
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi eastcoast,

    Thanks for your replys, i have been away on holiday for a few weeks hence the late reply.

    I have used the script from swfobject to embed and guess what???? ..........it only bloody works

    nice one, thanks for the tip! the only frustrating thing is i still dont understand why, do you?

    but never mind i suppose we dont have to understand everything!

    Thanks again


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •