日期:2014-05-16  浏览次数:20774 次

用Flex4开发的上传文件模块在火狐下遇到点问题,请赐教
我把网页和SWF文件放在同一目录下,在IE和火狐下都能正常上传文件,网页代码如下:
HTML code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="24"
    id="Object1">
    <param name="movie" value="Upload.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="Upload.swf" width="400"
        height="24">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
        <!--<![endif]-->
        <!--[if gte IE 6]>-->
        <p>
            Either scripts and active content are not permitted to run or Adobe Flash Player
            version 10.0.0 or greater is not installed.
        </p>
        <!--<![endif]-->
        <a href="http://www.adobe.com/go/getflashplayer">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                alt="Get Adobe Flash Player" />
        </a>
        <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
</object>


------------------------以下是问题产生代码----------------------

但我把swf文件放在与网页同级的一个目录Common中后,在IE下能正常上传文件,但在火狐中不能上传文件,网页代码如下:
HTML code
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="24"
    id="Object1">
    <param name="movie" value="Common/Upload.swf" />
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="allowFullScreen" value="true" />
    <!--[if !IE]>-->
    <object type="application/x-shockwave-flash" data="Common/Upload.swf" width="400"
        height="24">
        <param name="quality" value="high" />
        <param name="bgcolor" value="#ffffff" />
        <param name="allowScriptAccess" value="sameDomain" />
        <param name="allowFullScreen" value="true" />
        <!--<![endif]-->
        <!--[if gte IE 6]>-->
        <p>
            Either scripts and active content are not permitted to run or Adobe Flash Player
            version 10.0.0 or greater is not installed.
        </p>
        <!--<![endif]-->
        <a href="http://www.adobe.com/go/getflashplayer">
            <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
                alt="Get Adobe Flash Player" />
        </a>
        <!--[if !IE]>-->
    </object>
    <!--<![endif]-->
</object>


不知为何故。先谢谢了

------解决方案--------------------
object互相嵌套有问题吧,应该是embed标签嵌套在object里面比较多