#1
  1. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    669
    Rep Power
    38

    Flash and flash sniffer in IE9


    OK, here is the site: click here

    There is a flash logo in the upper left corner, and a Flash video beneath the header. If the viewer's browser does not have the flashplayer, static images are shown.

    I got this to work in IE8, but my client has IE9 and says that the flash logo and video are not there and neither are the static images.

    Please let me know what you see in IE9.

    thanks
  2. #2
  3. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3164
    I see an IIS7 404 page. If you want to be sure it works in as many browsers as possible then I highly recommend you use swfobject 2. That can also show alternative content if Flash is disabled. I use that "feature" all the time.
    Quis custodiet ipsos custodes?
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Mar 2008
    Posts
    669
    Rep Power
    38

    Hey Tann San


    I must have posted the wrong link. You can see the site here

    I am using swfobject. Is there a diffference between swfobject and swfobject2? I didn't see anything different on the page you posted. My code workls on IE6, IE7, and IE8, but not in IE9. My client has IE9 and said that the code isn't working. I'll be getting IE9 today.

    Here is a sample of my code:
    Code:
    <!-- code in the header --><script type="text/javascript" src="js/swfobject.js"></script>
    <script type="text/javascript">swfobject.registerObject("myId", "7.0.0", "flash/logoflash_final.swf");
    swfobject.registerObject("flash2", "7.0.0", "flash/techsolflash-3.swf");</script>
    </head>
    <body>
    <div id="logo">  
    <div>	
    <object id="myId" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="115" height="80">
    <param name="movie" value="logoflash_final.swf" /> 
    <!--#include file = "includes/flash_logo.inc"-->
    </object>
    </div>  
    <!-- close logo div --></div>
    The "flash_logo.inc" looks like this:
    Code:
     <!--[if !IE]> <-->
    <object type="application/x-shockwave-flash" data="flash/logoflash_final.swf" width="115" height="80">
    <!--> <![endif]-->
    <div>
    <p><a href="index.asp"><img src="images/common/header/logo2.gif" alt="Go to SMS home page" border="0" /></a></p>
    </div>
    <!--[if !IE]> <-->
    </object>
    <!--> <![endif]-->
    I had to use an include file as a work around for nested objects on an ASP page.
    Can you tell me if the logo is appearing animated in the top left, above the nav bar? And below the nav bar should be a flash video. Of course, if the user doesn't have flash, the logo will be static, and the video will be replaced by a static image.

    thanks again for your help
    -
  6. #4
  7. No Profile Picture
    Gotta get to the next screen..
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2003
    Location
    Legion of Dynamic Discord
    Posts
    6,678
    Rep Power
    3164
    Yah, doesn't work in IE9. You don't see the alt content at all because it tries to load the Flash file. The alt content is only shown (a) if they don't have Flash installed or (b) they have JavaScript disabled. I used Fiddler to check out what was going on behind the scenes and it says that "/SMStest11/flash/Cyber_Security.swf" could not be found 404 error. Same with a bunch of other files, I recommend you try it out so you can correct all the errors. The other files are:
    • tactical_solutions.png
    • cloud_i_off.png
    • cyber_security.png
    • enterprise_r_p_off.png

    I did work out what was going wrong with the Flash side of things, could be the same with the other files. In the swfobject JS you are loading these paths:

    flash/logoflash_final.swf
    flash/Cyber_Security.swf


    But then lower down where you define the movie parameter in the object tag you use:

    logoflash_final.swf

    For the inner object tag you are using:

    flash/logoflash_final.swf

    So a whole bunch of different paths. I sussed that out from just doing View Source on the page.

    The difference between swfobject and swfobject2 is that the later is newer and includes a bunch of fixes and updates over the previous version. I couldn't really say exactly what the differences are but if you are interested then try and track down a version history on their site. V2 has been out for ages like well over a year. You should always use the latest version. Personally, I use the dynamic publishing method over the static version that you used. I just think it looks cleaner.
    Quis custodiet ipsos custodes?

IMN logo majestic logo threadwatch logo seochat tools logo