Hi, i' m running with a strange issue with IE users only on my site (www.laguepebleuemontecarlo.com) ; when returning to homepage, it open on a weird content display. Here 's the code : <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!-- saved from url=(0014)about:internet --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>La Guepe Bleue Monte Carlo</title> <!-- SWFObject embed by Geoff Stearns geoff@deconcept.com http://blog.deconcept.com/ --> <script type="text/javascript" src="swfobject.js"></script> <style type="text/css">
/* hide from ie on mac \*/ html { height: 100%; overflow: hidden; }
<strong>You need to upgrade your Flash Player</strong> This is replaced by the Flash content. Place your alternate content here and users without the Flash plugin or with Javascript turned off will see this. Content here allows you to leave out <code>noscript</code> tags. Include a link to <a href="fullpage.html?detectflash=false">bypass the detection</a> if you wish. </div>
<script type="text/javascript"> // <![CDATA[
var so = new SWFObject("index.swf", "index", "100%", "100%", "8", "##ffffff"); so.addVariable("flashVarText", "this is passed in via FlashVars for example only"); so.addParam("scale", "noscale"); so.write("flashcontent");
"Your swfObject code you include looks fine."...So that i don' t understand the only IE users issue ! I put swfObject code on my homepage and that seems to work fine even with IE users but IE users when they want to return on the homepage after visiting a while to choose another language version, they got a weird homepage content displayed where buttons links access are no more available. So i don' t understand why swfObject plays on the first coming and no more on the playback... only with IE users ... Thanks for comments. qasar
Ton probleme est effectivement bizarre, mais attention a tes liens : sur la version EN de ton site le lien vers l'accueil renvoit vers index.swf et pas la home. Par contre c'est vrai qu'ensuite meme en retournant sur la home j'ai parfois le flash completement a gauche. Donc si ce n'est pas a cause de ce mauvais lien, peut etre les height 100% lui pose pb ?
Well, i really don' t understand this IE users issue ... really despairing. I tried many settings but nothing works ... Really don' t know what to do now ... :o/
You have a bunch of Stage.resize stuff happening on frame 1 of your index.swf. My guess is that you are not getting the correct values for the Stage width and height straight away and therefore your MC is being moved to the wrong place due to wrong values in the calculations.
You can try a couple of things.
1. move all code after your Stage scale and align calls to frame 2 or higher
// move all this to a frame > 1 bg.onResize = function () { ... }; Stage.addListener(bg); bg.onResize(); cover._x = Stage.width / 2; cover._y = Stage.height / 2;
2. Try passing in the width and height values as flash vars to your movie and base your calculations off of these values rather than Stage.width / Stage.height. Of course the 100% thing would be affected though, you would either have to change the movie to a static w/h, or read the window width and height from javascript and pass in the value.
Aran. Thank you so much for the light ! I gonna try your couple of things in spite of my english level !.. but i got why the issue ! Thanks a lot ! Now, let' s try some AS ... The thing is i just wanted the background (bg) in fullscreen browser window resize and the menu (cover) centered. It seems that my flash level is like my english level ... Thanks anyway !
Your resize code looked fine to me. You might want to put the below inside your bg.onResize function, so that the cover MC always centers when the stage is resized too.
Aran, thanks a lot ! I got the cover MC centered when IE users came back on the homepage !.. but the stage still don' t resize ... Anyway, i put a hex value in background color SWFObject. Thank you very much again Aran !