Closed GoogleCodeExporter closed 9 years ago
SWFObject loads Flash content ondomload (if supported, like in IE7 and Firefox)
and
not onload. Furthermore, DOM dependent functions can only execute when the DOM
of a
web page is available.
Original comment by bobbyvandersluis
on 28 Jan 2008 at 8:20
Oke,
But is it possible to disable that ondomload (if supported) and for older
browser
the onload ?
So it will be like this:
<script type="text/javascript">
//<![CDATA[
var flashvars = {};
var params = {};
params.play = "true";
params.quality = "autohigh";
params.bgcolor = "#000000";
var attributes = {};
swfobject.embedSWF("bla.swf", "flashcontent","600","450","9.0.0",false,
flashvars,
params, attributes);
swfobject.do_not_wait_but_play_when_you_are_ready; // you live on you your own
//]]>
</script>
I attached a screenshot soo you can see what the problem is.
the screenshot uses these specs:
- Vista IE7
- The latest flash
- The latest swfobject
- The latest adsense banner code
- a .swf file on my own host (what I run before in the browser like this
http://thelinktothe.swf , so its in my IE7 cache)
- then I run the testpage.html with the google adsense code and the swfobject
several times. (because its not everytime that google adsense is stuck)
And then it happend after 4 times reloading the IE7 testpage.html page.
- the google url is waiting... waiting... and waiting for-ever
- what means that the swfobject is will not be visible for the user , and that
is
the problem.
I don't know how to solve it, but I know that when the browser don't get the
'hello
i'm ready status' the swfobject won't work... :(
Original comment by i...@2dgames.eu
on 28 Jan 2008 at 10:35
Attachments:
Ok, this is clearly an authoring issue: if you have problems figuring this out,
you
can discuss this further on the SWFObject 2.0 discussion group on Google Groups.
You shouldn't use embedSWF and addDomLoadEvent together, as embedSWF uses
addDomLoadEvent internally. If you are sure the DOM of a web page is loaded,
you can
use the createSWF function (this you can use in tandem with addDomLoadEvent).
Please
read the documentation page and the API documentation page for all info.
Original comment by bobbyvandersluis
on 29 Jan 2008 at 10:14
Original issue reported on code.google.com by
i...@2dgames.eu
on 27 Jan 2008 at 3:26