/1.4/docs/html/tutorials/kissy/swf/handling-flash-versions.html
HTML | 242 lines | 202 code | 22 blank | 18 comment | 0 complexity | 57a8ef9e2a24f13de8f01a5c2b60b170 MD5 | raw file
Possible License(s): Apache-2.0
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8"/>
- <meta name="viewport"
- content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
- <meta name="data-spm" content="1" data-spm-protocol="i" />
- <title>处理Flash播放器版本 — KISSY v1.4 Documentation</title>
- <link rel="stylesheet" href="//g.alicdn.com/kissy/k/1.4.7/css/dpl/base-min.css"/>
- <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
- <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
- <script>
- var DOCUMENTATION_OPTIONS = {
- URL_ROOT: '../../../',
- VERSION: '',
- COLLAPSE_INDEX: false,
- FILE_SUFFIX: '.html',
- HAS_SOURCE: true
- };
- </script>
- <script type="text/javascript" src="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/??jquery.js,underscore.js,doctools.js,searchtools.js"></script>
- <script>
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-31470541-1']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
- </script>
- <link rel="stylesheet" href="../../../_static/kissy.css"/>
- <link rel="stylesheet" href="../../../_static/prettify.css"/>
- <link rel="stylesheet" href="../../../_static/forkit.css"/>
- <link rel="stylesheet" href="../../../_static/bootstrap.css"/>
- <script src="//g.alicdn.com/kissy/k/1.4.7/seed.js"></script>
- </head>
- <body data-spy="scroll" data-target=".bs-docs-sidebar">
- <nav id="sidebar">
- <header>
- <a href="/" >
- <img src="http://gtms01.alicdn.com/tps/i1/T1MVbxFoRcXXchhRni-175-68.png" alt="" />
- </a>
- </header>
-
- <div class="col-sub">
- <div class="s-box">
- <div class="s-box-bd">
- <ul class="current">
- <li class="toctree-l1"><a class="reference internal" href="../../../api/index.html">API Documentation</a></li>
- <li class="toctree-l1"><a class="reference internal" href="../../../demo/index.html">Demos</a></li>
- <li class="toctree-l1 current"><a class="reference internal" href="../../index.html">Tutorials</a><ul class="current">
- <li class="toctree-l2 current"><a class="reference internal" href="../index.html">KISSY Modules</a><ul class="current">
- <li class="toctree-l3"><a class="reference internal" href="../loader/index.html">Loader</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../ua/index.html">UA</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../base/index.html">base</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../selector/impl.html">css3 selectors</a></li>
- <li class="toctree-l3 current"><a class="reference internal" href="index.html">swf</a></li>
- <li class="toctree-l3"><a class="reference internal" href="../xtemplate/index.html">xtemplate</a></li>
- </ul>
- </li>
- <li class="toctree-l2"><a class="reference internal" href="../../style-guide/index.html">最佳编码实践</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../../workflow/index.html">组件开发指南</a></li>
- <li class="toctree-l2"><a class="reference internal" href="../../tools/index.html">前端常用工具</a></li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div class="col-extra">
-
- <div class="s-box">
- <div class="s-box-hd">
- <h3>本节提纲</h3>
- </div>
- <div class="s-box-bd">
- <ul>
- <li><a class="reference internal" href="#">处理Flash播放器版本</a><ul>
- <li><a class="reference internal" href="#flash-versions-section1">满足期望的版本</a></li>
- <li><a class="reference internal" href="#flash-versions-section2">较旧的版本</a></li>
- <li><a class="reference internal" href="#flash-versions-section3">未安装</a></li>
- </ul>
- </li>
- </ul>
- </div>
- </div>
- </div>
- <div id="searchbox" class="searchbox">
- <form class="search" action="../../../search.html" method="get">
- <input type="text" name="q" size="28" class="ipt"/>
- <input type="submit" value="Go" class="btn"/>
- <input type="hidden" name="check_keywords" value="yes"/>
- <input type="hidden" name="area" value="default"/>
- </form>
- </div>
- </nav>
- <div id="content" class="body">
- <article>
- <ul class="api-header clearfix">
- <li class="first">
- <a href="/" >
- 首页
- </a>
- </li>
- <li><a href="../../../../../docs/html/api/index.html">API</a></li>
- <li><a href="../../../../../docs/html/demo/index.html">Demo</a></li>
- <li>
- <a href="../../../../../docs/html/guideline/get-started.html" >Guideline</a>
- </li>
- <li>
- <a href="../../../../../docs/html/coms.html" >组件列表</a>
- </li>
- <li><a href="../../../../../docs/html/tutorials/index.html">Tutorials</a></li>
- <li style="float:right"><a href="https://github.com/kissyteam/kissy">Source Code</a></li>
- <li style="float:right"><a href="/1.4/api/">English API Docs</a></li>
- </ul>
-
- <div class='related'>
- <h3>Navigation</h3>
-
- <ul>
- <li class="right" style="margin-right: 10px">
- <a href="../../../genindex.html" title="General Index"
- accesskey="I">index</a></li>
- <li class="right" >
- <a href="../../../py-modindex.html" title="Python Module Index"
- >modules</a> | </li>
- <li class="right" >
- <a href="../xtemplate/index.html" title="xtemplate"
- accesskey="N">next</a> | </li>
- <li class="right" >
- <a href="publishing-dynamic.html" title="动态发布方式"
- accesskey="P">previous</a> | </li>
- <li><a href="../../../index.html">KISSY v1.4 Documentation</a> » </li>
- <li><a href="../../index.html" >Tutorials</a> » </li>
- <li><a href="../index.html" >KISSY Modules</a> » </li>
- <li><a href="index.html" accesskey="U">swf</a> » </li>
- </ul>
- </div>
-
- <div class="section" id="flash">
- <h1>处理Flash播放器版本<a class="headerlink" href="#flash" title="Permalink to this headline">¶</a></h1>
- <p>author: <a class="reference external" href="mailto:oicuicu%40gmail.com">龙藏</a></p>
- <div class="section" id="flash-versions-section1">
- <span id="id2"></span><h2>满足期望的版本<a class="headerlink" href="#flash-versions-section1" title="Permalink to this headline">¶</a></h2>
- <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">KISSY</span><span class="p">.</span><span class="nx">use</span><span class="p">(</span><span class="s1">'swf'</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">S</span><span class="p">,</span><span class="nx">SWF</span><span class="p">){</span>
- <span class="k">if</span><span class="p">(</span><span class="nx">SWF</span><span class="p">.</span><span class="nx">fpvGTE</span><span class="p">(</span><span class="s1">'9.1.0'</span><span class="p">)</span> <span class="p">{</span>
- <span class="c1">// 符合浏览SWF内容版本</span>
- <span class="p">}</span>
- <span class="p">});</span>
- </pre></div>
- </div>
- <p>当然如果想了解客户端细节可以使用</p>
- <div class="highlight-javascript"><div class="highlight"><pre><span class="nx">KISSY</span><span class="p">.</span><span class="nx">use</span><span class="p">(</span><span class="s1">'swf'</span><span class="p">,</span><span class="kd">function</span><span class="p">(</span><span class="nx">S</span><span class="p">,</span><span class="nx">SWF</span><span class="p">){</span>
- <span class="kd">var</span> <span class="nx">ver</span> <span class="o">=</span> <span class="nx">SWF</span><span class="p">.</span><span class="nx">fpv</span><span class="p">();</span>
- <span class="k">if</span><span class="p">(</span><span class="nx">ver</span><span class="p">){</span>
- <span class="c1">// 对ver做细节判断</span>
- <span class="c1">// 格式:[ Major, Minor, Revision ]</span>
- <span class="p">}</span>
- <span class="c1">// 如果 未安装则 ver 为 undefined</span>
- <span class="p">});</span>
- </pre></div>
- </div>
- </div>
- <div class="section" id="flash-versions-section2">
- <span id="id3"></span><h2>较旧的版本<a class="headerlink" href="#flash-versions-section2" title="Permalink to this headline">¶</a></h2>
- <p>对于使用 Flash 动态方式发布的swf,则会先尝试调用快速安装,如果未指定则不作任何操作。保留原入口显示。</p>
- </div>
- <div class="section" id="flash-versions-section3">
- <span id="id4"></span><h2>未安装<a class="headerlink" href="#flash-versions-section3" title="Permalink to this headline">¶</a></h2>
- <p>对于使用 Flash 动态方式发布不作任何操作。保留原入口显示。</p>
- </div>
- </div>
- <div id="disqus_thread"></div>
- <script>
- if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
- /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
- var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
- // The following are highly recommended additional parameters. Remove the slashes in front to use.
- //var disqus_identifier = '/anim';
- //var disqus_url = window.location;
- /* * * DON'T EDIT BELOW THIS LINE * * */
- (function() {
- var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
- dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
- (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
- })();
- }
- </script>
- <!--<div id="google-search-box">
- <div id="cse" style="width: 100%;">Loading</div>
- <script>
- if(window.location.hostname.indexOf("kissyui.com")!=-1){
- document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
- }
- </script>
- <script>
- if(window.location.hostname.indexOf("kissyui.com")!=-1){
- google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
- google.setOnLoadCallback(function() {
- var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
- customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
- customSearchControl.draw('cse');
- }, true);
- }
- </script>
- </div>-->
- </article>
- </div>
- <footer class="footer">
- <p>© Copyright 2010~2014, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a></p>
- </footer></body>
- <script>
- // added by jayli
- (function(){
- $('table.docutils').addClass('table table-bordered');
- $('.admonition.note').addClass('alert alert-info');
- $('.admonition.hint').addClass('alert alert-success');
- $('.admonition.warning').addClass('alert alert-warning');
- $('.admonition.attention').addClass('alert alert-danger');
- })();
- </script>
- <script type="text/javascript" src="http://tajs.qq.com/stats?sId=39100375" charset="UTF-8"></script>
- </html>