如何从页面的 html 代码下载 .swf 文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7461700/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-29 10:40:38  来源:igfitidea点击:

How to download a .swf file from a page's html code?

htmldownloadflash

提问by brilliant

There is one html page that contains only a .swf file that can be streaming from there:

有一个 html 页面只包含一个 .swf 文件,可以从那里流式传输:

http://tvoy-start.ru/uroki/1nedel/1nedel.html

http://tvoy-start.ru/uroki/1nedel/1nedel.html

Here is that page source:

这是该页面的来源:

<!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>
        <!-- saved from url=(0025)http://www.techsmith.com/ -->
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="DC.date" content="2011-09-15 11:37:43 " />
        <meta name="DC.language" content="ENU" />
        <meta name="DC.title" content="1nedel" />

        <title>Р?Р?Р·Р?Р°Р?Р? Camtasia Studio 6</title>

        <script type="text/javascript" src="swfobject.js"></script>
        <script type="text/javascript">
            swfobject.registerObject("csSWF", "9.0.115", "expressInstall.swf");
        </script>
        <style type="text/css">
            body 
            {
                background-color: #1a1a1a;
                font: .8em/1.3em verdana,arial,helvetica,sans-serif;
                text-align: center;
            }
            #media
            {
                margin-top: 40px;
            }
            #noUpdate
            {
                margin: 0 auto;
                font-family:Arial, Helvetica, sans-serif;
                font-size: x-small;
                color: #cccccc;
                text-align: left;
                width: 210px; 
                height: 200px;  
                padding: 40px;
            }
        </style>
    </head>
    <body>
        <div id="media">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="900" height="420" id="csSWF">

                <param name="movie" value="1nedel_controller.swf" />
                <param name="quality" value="best" />
                <param name="bgcolor" value="#1a1a1a" />
                <param name="allowfullscreen" value="true" />
                <param name="scale" value="showall" />
                <param name="allowscriptaccess" value="always" />
                <param name="flashvars" value="autostart=false&thumb=FirstFrame.png&thumbscale=45&color=0x1A1A1A,0x1A1A1A" />
                <!--[if !IE]>-->
                <object type="application/x-shockwave-flash" data="1nedel_controller.swf" width="900" height="420">

                    <param name="quality" value="best" />
                    <param name="bgcolor" value="#1a1a1a" />
                    <param name="allowfullscreen" value="true" />
                    <param name="scale" value="showall" />
                    <param name="allowscriptaccess" value="always" />
                    <param name="flashvars" value="autostart=false&thumb=FirstFrame.png&thumbscale=45&color=0x1A1A1A,0x1A1A1A" />
                <!--<![endif]-->
                    <div id="noUpdate">
                        <p>The Camtasia Studio video content presented here requires a more recent version of the Adobe Flash Player. If you are you using a browser with JavaScript disabled please enable it now. Otherwise, please update your version of the free Flash Player by <a href="http://www.adobe.com/go/getflashplayer">downloading here</a>.</p>

                    </div>
                <!--[if !IE]>-->
                </object>
                <!--<![endif]-->
            </object>
        </div>
        <!-- Users looking for simple object / embed tags can copy and paste the needed tags below.
        <div id="media">
            <object id="csSWF" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="900" height="420" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0">
                <param name="src" value="1nedel_controller.swf"/>
                <param name="bgcolor" value="#1a1a1a"/>
                <param name="quality" value="best"/>
                <param name="allowScriptAccess" value="always"/>
                <param name="allowFullScreen" value="true"/>
                <param name="scale" value="showall"/>
                <param name="flashVars" value="autostart=false"/>
                <embed name="csSWF" src="1nedel_controller.swf" width="900" height="420" bgcolor="#1a1a1a" quality="best" allowScriptAccess="always" allowFullScreen="true" scale="showall" flashVars="autostart=false&thumb=FirstFrame.png&thumbscale=45&color=0x1A1A1A,0x1A1A1A" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>
            </object>
        </div>
        -->
    </body>
</html>

I wonder, where in the page's source, if it's possible at all, can I find the link so that I could download that .swf file onto my computer?

我想知道,如果可能的话,在页面的源代码中,是否可以找到链接以便我可以将该 .swf 文件下载到我的计算机上?

回答by Francesco Belladonna

Yes it's specified as "movie" param under object tag. You can reach it at http://tvoy-start.ru/uroki/1nedel/1nedel_controller.swf

是的,它在对象标签下被指定为“电影”参数。您可以通过http://tvoy-start.ru/uroki/1nedel/1nedel_controller.swf访问它

However, the swf file may have some server side control that doesn't allow you to see streaming if you aren't on that website. Just try.

但是,swf 文件可能有一些服务器端控件,如果您不在该网站上,则不允许您查看流媒体。你试一试。

EDIT:Forgot, you have to save the page, in my browser (firefox) is File->Save page with name On internet explorer is the engine wheel icon->File->Save as

编辑:忘记了,你必须保存页面,在我的浏览器(firefox)中是文件->保存页面名称在 Internet Explorer 上是引擎轮图标->文件->另存为

On other browsers, I don't know at the moment

在其他浏览器上,我目前不知道