ouyang789987 / swfobject

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

flash don't shows when I have an IFrame in the same page #517

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the following code at the head section of the document:
    <script type="text/javascript" src="js/swfobject.js"></script>
    <script type="text/javascript">
        var swfVersionStr = "8.0.24";

        var xiSwfUrlStr = "";
        var flashvars = {};
        var params = {};
        params.quality = "high";
        params.bgcolor = "#ffffff";
        params.play = "true";
        params.loop = "true";
        params.wmode = "transparent";
        params.scale = "showall";
        params.menu = "true";
        params.devicefont = "false";
        params.salign = "";
        params.allowscriptaccess = "sameDomain";
        var attributes = {};
        attributes.id = "figura";
        attributes.name = "figura";
        attributes.align = "middle";
        swfobject.createCSS("html", "height:100%; background-color: #ffffff;");
        swfobject.createCSS("body", "margin:0; padding:0; overflow:hidden; height:100%;");
        swfobject.embedSWF(
            "media/figura.swf", "flashContent",
            "595", "261",
            swfVersionStr, xiSwfUrlStr,
            flashvars, params, attributes);
    </script>

2. the following code at the body section:
    <form id="frmContacto" runat="server">
       <div id="divLegal" >
                <input id="cmdCierreLegal" type="button" value="X" onclick="efectoPanel(500,145,480,440,310,320,20,20,'divLegal',1,false);" />
                <iframe id="frameLegal" src="legal.html" title="Aviso Legal" frameborder="0" scrolling="auto" />
        </div>
    </form>
    <div id="divLogoFlash">
            <div id="flashContent">
                <a href="http://www.adobe.com/go/getflash">
                    <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Obtener Adobe Flash Player" />
                </a>
              <p>Esta página necesita la versión 8.0.24 de Flash o superior.</p>
            </div>
    </div> 
3. Is an aspx page. Both, flash file and html page loaded in the iframe, are 
from the same domain.

What is the expected output? To show the flash animation and the iframe 
content...

What version of the product are you using? On what operating system? Generated 
by CS5

Please provide any additional information below.
No errors given, but can't see flash animation 

Original issue reported on code.google.com by jej.mor...@gmail.com on 11 Nov 2010 at 6:15

GoogleCodeExporter commented 9 years ago
SWFObject works on pages with iframes.

This is most likely an implementation error, not a SWFObject bug. Please post 
your issue on the SWFObject Google Group, there are many people there who can 
help you troubleshoot. http://groups.google.com/group/swfobject

Thanks

Original comment by platelu...@gmail.com on 11 Nov 2010 at 9:13