A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Internet Explorer 9 problems displaying swf

Hybrid View

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    8

    Internet Explorer 9 problems displaying swf

    Hello,
    I have an html website with SWF pages embedded. (using flash player 9 and as3) It seems to be working well with all browsers except Internet Explorer 9. When viewed in IE9 the swf appears only about 50 pix high and the browser displays the ENTIRE length of my swf. (as opposed to the "active stage area" that I exported) So essentially it IE9 is displaying all of the hidden stuff that I don't want the user to see. And as a result the entire swf height is small..

    Anyone have a clue why this may be happening and how to fix?

    here is my link:
    www.seanlattrell.com

  2. #2
    Junior Member
    Join Date
    Feb 2012
    Posts
    8

    Internet Explorer 9 issue

    I should have noted that I am using AS3 Flash CS3 (publishing a flash version10.1.52)

  3. #3
    Senior Member
    Join Date
    Apr 2002
    Posts
    2,849
    I'd suggest trying:

    Code:
    html, body {margin: 0; padding: 0; width: 100%; height: 100%}
    I believe your previous version of the page only had width or height, but not both.

  4. #4
    Junior Member
    Join Date
    Feb 2012
    Posts
    8

    IE9 Scaling issue (margin and padding)?

    You mean by turning this:
    swfobject.createCSS("html", "height:100%; background-color: #000000;");
    swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
    swfobject.embedSWF(
    "SeansWebsite_2012.swf", "flashContent",
    "100%", "100%",
    swfVersionStr, xiSwfUrlStr,
    flashvars, params, attributes);
    </script>
    </head>
    <body>

    into this?:

    swfobject.createCSS("html", "height:100%; background-color: #000000;");
    swfobject.createCSS("body", "margin:100%; padding:100%; overflow:hidden; height:100%;");
    swfobject.embedSWF(
    "SeansWebsite_2012.swf", "flashContent",
    "100%", "100%,100%", "100%",
    swfVersionStr, xiSwfUrlStr,
    flashvars, params, attributes);
    </script>
    </head>
    <body>

  5. #5
    Junior Member
    Join Date
    Feb 2012
    Posts
    8
    I am wondering now how to specifically detect Internet Explorer Version 9, Once ver9 is detected I would like to have the HTML page re-routed to ints own IE9 version.

    My "detect version" code seems to be off.. any suggestions?

    <script language="JavaScript" type="text/JavaScript">
    if(navigator.appName == "Microsoft Internet Explorer")+ (navigator.appVersion==9)
    {
    window.location = "SeansWebsite_2012_IE9.html"
    }
    </script>

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center