PageRenderTime 46ms CodeModel.GetById 18ms RepoModel.GetById 1ms app.codeStats 0ms

/1.4/docs/html/tutorials/kissy/swf/handling-flash-versions.html

https://github.com/kissyteam/kissyteam.github.com
HTML | 242 lines | 202 code | 22 blank | 18 comment | 0 complexity | 57a8ef9e2a24f13de8f01a5c2b60b170 MD5 | raw file
Possible License(s): Apache-2.0
  1. <!doctype html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8"/>
  5. <meta name="viewport"
  6. content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
  7. <meta name="data-spm" content="1" data-spm-protocol="i" />
  8. <title>处理Flash播放器版本 &mdash; KISSY v1.4 Documentation</title>
  9. <link rel="stylesheet" href="//g.alicdn.com/kissy/k/1.4.7/css/dpl/base-min.css"/>
  10. <link rel="stylesheet" href="http://a.tbcdn.cn/s/kissy/gallery/sphinx/1.1.3/pygments.css" type="text/css" />
  11. <link rel="shortcut icon" href="http://a.tbcdn.cn/s/kissy/favicon.ico" type="image/x-icon" />
  12. <script>
  13. var DOCUMENTATION_OPTIONS = {
  14. URL_ROOT: '../../../',
  15. VERSION: '',
  16. COLLAPSE_INDEX: false,
  17. FILE_SUFFIX: '.html',
  18. HAS_SOURCE: true
  19. };
  20. </script>
  21. <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>
  22. <script>
  23. var _gaq = _gaq || [];
  24. _gaq.push(['_setAccount', 'UA-31470541-1']);
  25. _gaq.push(['_trackPageview']);
  26. (function() {
  27. var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
  28. ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
  29. var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  30. })();
  31. </script>
  32. <link rel="stylesheet" href="../../../_static/kissy.css"/>
  33. <link rel="stylesheet" href="../../../_static/prettify.css"/>
  34. <link rel="stylesheet" href="../../../_static/forkit.css"/>
  35. <link rel="stylesheet" href="../../../_static/bootstrap.css"/>
  36. <script src="//g.alicdn.com/kissy/k/1.4.7/seed.js"></script>
  37. </head>
  38. <body data-spy="scroll" data-target=".bs-docs-sidebar">
  39. <nav id="sidebar">
  40. <header>
  41. <a href="/" >
  42. <img src="http://gtms01.alicdn.com/tps/i1/T1MVbxFoRcXXchhRni-175-68.png" alt="" />
  43. </a>
  44. </header>
  45. <div class="col-sub">
  46. <div class="s-box">
  47. <div class="s-box-bd">
  48. <ul class="current">
  49. <li class="toctree-l1"><a class="reference internal" href="../../../api/index.html">API Documentation</a></li>
  50. <li class="toctree-l1"><a class="reference internal" href="../../../demo/index.html">Demos</a></li>
  51. <li class="toctree-l1 current"><a class="reference internal" href="../../index.html">Tutorials</a><ul class="current">
  52. <li class="toctree-l2 current"><a class="reference internal" href="../index.html">KISSY Modules</a><ul class="current">
  53. <li class="toctree-l3"><a class="reference internal" href="../loader/index.html">Loader</a></li>
  54. <li class="toctree-l3"><a class="reference internal" href="../ua/index.html">UA</a></li>
  55. <li class="toctree-l3"><a class="reference internal" href="../base/index.html">base</a></li>
  56. <li class="toctree-l3"><a class="reference internal" href="../selector/impl.html">css3 selectors</a></li>
  57. <li class="toctree-l3 current"><a class="reference internal" href="index.html">swf</a></li>
  58. <li class="toctree-l3"><a class="reference internal" href="../xtemplate/index.html">xtemplate</a></li>
  59. </ul>
  60. </li>
  61. <li class="toctree-l2"><a class="reference internal" href="../../style-guide/index.html">最佳编码实践</a></li>
  62. <li class="toctree-l2"><a class="reference internal" href="../../workflow/index.html">组件开发指南</a></li>
  63. <li class="toctree-l2"><a class="reference internal" href="../../tools/index.html">前端常用工具</a></li>
  64. </ul>
  65. </li>
  66. </ul>
  67. </div>
  68. </div>
  69. </div>
  70. <div class="col-extra">
  71. <div class="s-box">
  72. <div class="s-box-hd">
  73. <h3>本节提纲</h3>
  74. </div>
  75. <div class="s-box-bd">
  76. <ul>
  77. <li><a class="reference internal" href="#">处理Flash播放器版本</a><ul>
  78. <li><a class="reference internal" href="#flash-versions-section1">满足期望的版本</a></li>
  79. <li><a class="reference internal" href="#flash-versions-section2">较旧的版本</a></li>
  80. <li><a class="reference internal" href="#flash-versions-section3">未安装</a></li>
  81. </ul>
  82. </li>
  83. </ul>
  84. </div>
  85. </div>
  86. </div>
  87. <div id="searchbox" class="searchbox">
  88. <form class="search" action="../../../search.html" method="get">
  89. <input type="text" name="q" size="28" class="ipt"/>
  90. <input type="submit" value="Go" class="btn"/>
  91. <input type="hidden" name="check_keywords" value="yes"/>
  92. <input type="hidden" name="area" value="default"/>
  93. </form>
  94. </div>
  95. </nav>
  96. <div id="content" class="body">
  97. <article>
  98. <ul class="api-header clearfix">
  99. <li class="first">
  100. <a href="/" >
  101. 首页
  102. </a>
  103. </li>
  104. <li><a href="../../../../../docs/html/api/index.html">API</a></li>
  105. <li><a href="../../../../../docs/html/demo/index.html">Demo</a></li>
  106. <li>
  107. <a href="../../../../../docs/html/guideline/get-started.html" >Guideline</a>
  108. </li>
  109. <li>
  110. <a href="../../../../../docs/html/coms.html" >组件列表</a>
  111. </li>
  112. <li><a href="../../../../../docs/html/tutorials/index.html">Tutorials</a></li>
  113. <li style="float:right"><a href="https://github.com/kissyteam/kissy">Source Code</a></li>
  114. <li style="float:right"><a href="/1.4/api/">English API Docs</a></li>
  115. </ul>
  116. <div class='related'>
  117. <h3>Navigation</h3>
  118. <ul>
  119. <li class="right" style="margin-right: 10px">
  120. <a href="../../../genindex.html" title="General Index"
  121. accesskey="I">index</a></li>
  122. <li class="right" >
  123. <a href="../../../py-modindex.html" title="Python Module Index"
  124. >modules</a> | </li>
  125. <li class="right" >
  126. <a href="../xtemplate/index.html" title="xtemplate"
  127. accesskey="N">next</a> | </li>
  128. <li class="right" >
  129. <a href="publishing-dynamic.html" title="动态发布方式"
  130. accesskey="P">previous</a> | </li>
  131. <li><a href="../../../index.html">KISSY v1.4 Documentation</a> &#187; </li>
  132. <li><a href="../../index.html" >Tutorials</a> &#187; </li>
  133. <li><a href="../index.html" >KISSY Modules</a> &#187; </li>
  134. <li><a href="index.html" accesskey="U">swf</a> &#187; </li>
  135. </ul>
  136. </div>
  137. <div class="section" id="flash">
  138. <h1>处理Flash播放器版本<a class="headerlink" href="#flash" title="Permalink to this headline"></a></h1>
  139. <p>author: <a class="reference external" href="mailto:oicuicu&#37;&#52;&#48;gmail&#46;com">龙藏</a></p>
  140. <div class="section" id="flash-versions-section1">
  141. <span id="id2"></span><h2>满足期望的版本<a class="headerlink" href="#flash-versions-section1" title="Permalink to this headline"></a></h2>
  142. <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">&#39;swf&#39;</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>
  143. <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">&#39;9.1.0&#39;</span><span class="p">)</span> <span class="p">{</span>
  144. <span class="c1">// 符合浏览SWF内容版本</span>
  145. <span class="p">}</span>
  146. <span class="p">});</span>
  147. </pre></div>
  148. </div>
  149. <p>当然如果想了解客户端细节可以使用</p>
  150. <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">&#39;swf&#39;</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>
  151. <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>
  152. <span class="k">if</span><span class="p">(</span><span class="nx">ver</span><span class="p">){</span>
  153. <span class="c1">// 对ver做细节判断</span>
  154. <span class="c1">// 格式:[ Major, Minor, Revision ]</span>
  155. <span class="p">}</span>
  156. <span class="c1">// 如果 未安装则 ver 为 undefined</span>
  157. <span class="p">});</span>
  158. </pre></div>
  159. </div>
  160. </div>
  161. <div class="section" id="flash-versions-section2">
  162. <span id="id3"></span><h2>较旧的版本<a class="headerlink" href="#flash-versions-section2" title="Permalink to this headline"></a></h2>
  163. <p>对于使用 Flash 动态方式发布的swf,则会先尝试调用快速安装如果未指定则不作任何操作保留原入口显示</p>
  164. </div>
  165. <div class="section" id="flash-versions-section3">
  166. <span id="id4"></span><h2>未安装<a class="headerlink" href="#flash-versions-section3" title="Permalink to this headline"></a></h2>
  167. <p>对于使用 Flash 动态方式发布不作任何操作保留原入口显示</p>
  168. </div>
  169. </div>
  170. <div id="disqus_thread"></div>
  171. <script>
  172. if((window.location.hostname.indexOf("kissyui.com")!=-1 )&& window.localStorage.getItem("kissy-commment")!="0"){
  173. /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
  174. var disqus_shortname = 'kissy-docs'; // required: replace example with your forum shortname
  175. // The following are highly recommended additional parameters. Remove the slashes in front to use.
  176. //var disqus_identifier = '/anim';
  177. //var disqus_url = window.location;
  178. /* * * DON'T EDIT BELOW THIS LINE * * */
  179. (function() {
  180. var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
  181. dsq.src = 'http://' + disqus_shortname + '.disqus.com/embed.js';
  182. (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  183. })();
  184. }
  185. </script>
  186. <!--<div id="google-search-box">
  187. <div id="cse" style="width: 100%;">Loading</div>
  188. <script>
  189. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  190. document.write('<script src="http://www.google.com/jsapi" type="text/javascript"><'+'/script>');
  191. }
  192. </script>
  193. <script>
  194. if(window.location.hostname.indexOf("kissyui.com")!=-1){
  195. google.load('search', '1', {language : 'zh-CN', style : google.loader.themes.MINIMALIST});
  196. google.setOnLoadCallback(function() {
  197. var customSearchControl = new google.search.CustomSearchControl('012347804910294994683:n4uzb24gqdm');
  198. customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET);
  199. customSearchControl.draw('cse');
  200. }, true);
  201. }
  202. </script>
  203. </div>-->
  204. </article>
  205. </div>
  206. <footer class="footer">
  207. <p>&copy; Copyright 2010~2014, KISSY Team. Created using <a href="http://sphinx.pocoo.org/">Sphinx</a></p>
  208. </footer></body>
  209. <script>
  210. // added by jayli
  211. (function(){
  212. $('table.docutils').addClass('table table-bordered');
  213. $('.admonition.note').addClass('alert alert-info');
  214. $('.admonition.hint').addClass('alert alert-success');
  215. $('.admonition.warning').addClass('alert alert-warning');
  216. $('.admonition.attention').addClass('alert alert-danger');
  217. })();
  218. </script>
  219. <script type="text/javascript" src="http://tajs.qq.com/stats?sId=39100375" charset="UTF-8"></script>
  220. </html>