fabriciocs / swfobject

Automatically exported from code.google.com/p/swfobject
0 stars 0 forks source link

createSWF not called after embedSWF (using YAHOO.util.Get.script) #59

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
the following html code displays an empty page:
<html>
<head>
<script type="text/javascript"
src="http://yui.yahooapis.com/2.5.0/build/yahoo-dom-event/yahoo-dom-event.js"></
script>
<script type="text/javascript"
src="http://yui.yahooapis.com/2.5.0/build/get/get.js"></script>

<script type="text/javascript">
    YAHOO.util.Get.script("/public/js/library/swfobject/src/swfobject.js", {
        onSuccess: function() {
            // alert("hier");
            swfobject.embedSWF(
                "/public/js/library/swfobject/test.swf",
                "video",
                "800","500",
                "9.0.0"
            );
        }
    });
</script>
</head>
<body>
<div id="video">no flash</div>
</body>
</html>

What is the expected output? What do you see instead?
the test.swf or the message "no flash"

What version of the product are you using? On what operating system?
SWFObject v2.0
Win XP
Firefox 2.0.0.13 & IE 7.0.5730.11

Please provide any additional information below.
on changing the folowing in function swfobject.embedSWF it work:
Line 549 -> 554
//addDomLoadEvent(function() {
    createSWF(att, par, replaceElemIdStr);
    if (att.id == replaceElemIdStr) {
        setVisibility(replaceElemIdStr, true);
    }
//});

Original issue reported on code.google.com by goo...@myhotelvideo.com on 27 Mar 2008 at 2:44

GoogleCodeExporter commented 9 years ago
I don't see the use of this test case, or why this should be a swfobject 
related issue.

Original comment by bobbyvandersluis on 27 Mar 2008 at 5:04