1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <!-- saved from url=(0014)about:internet -->
  3. <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
  4. <!--
  5. Smart developers always View Source.
  6. This application was built using Adobe Flex, an open source framework
  7. for building rich Internet applications that get delivered via the
  8. Flash Player or to desktops via Adobe AIR.
  9. Learn more about Flex at http://flex.org
  10. // -->
  11. <head>
  12. <title>${title}</title>
  13. <meta name="google" value="notranslate" />
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15. <!-- Include CSS to eliminate any default margins/padding and set the height of the html element and
  16. the body element to 100%, because Firefox, or any Gecko based browser, interprets percentage as
  17. the percentage of the height of its parent container, which has to be set explicitly.  Fix for
  18. Firefox 3.6 focus border issues.  Initially, don't display flashContent div so it won't show
  19. if JavaScript disabled.
  20. -->
  21. <style type="text/css" media="screen">
  22. html, body  { height:100%; }
  23. body { margin:0; padding:0; overflow:auto; text-align:center;
  24. background-color: ${bgcolor}; }
  25. object:focus { outline:none; }
  26. #flashContent { display:none; }
  27. </style>
  28. <!-- Enable Browser History by replacing useBrowserHistory tokens with two hyphens -->
  29. <!-- BEGIN Browser History required section ${useBrowserHistory}>
  30. <link rel="stylesheet" type="text/css" href="history/history.css" />
  31. <script type="text/javascript" src="history/history.js"></script>
  32. <!${useBrowserHistory} END Browser History required section -->
  33. <script type="text/javascript" src="swfobject.js"></script>
  34. <script type="text/javascript">
  35. // For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection.
  36. var swfVersionStr = "${version_major}.${version_minor}.${version_revision}";
  37. // To use express install, set to playerProductInstall.swf, otherwise the empty string.
  38. var xiSwfUrlStr = "${expressInstallSwf}";
  39. var flashvars = {employeeName:"中文",language:"en_US"};
  40. var params = {};
  41. params.quality = "high";
  42. params.bgcolor = "${bgcolor}";
  43. params.allowscriptaccess = "sameDomain";
  44. params.allowfullscreen = "true";
  45. var attributes = {};
  46. attributes.id = "${application}";
  47. attributes.name = "${application}";
  48. attributes.align = "middle";
  49. swfobject.embedSWF(
  50. "${swf}.swf?version=1.0", "flashContent",
  51. "${width}", "${height}",
  52. swfVersionStr, xiSwfUrlStr,
  53. flashvars, params, attributes);
  54. // JavaScript enabled so display the flashContent div in case it is not replaced with a swf object.
  55. swfobject.createCSS("#flashContent", "display:block;text-align:left;");
  56. </script>
  57. </head>
  58. <body>
  59. <!-- SWFObject's dynamic embed method replaces this alternative HTML content with Flash content when enough
  60. JavaScript and Flash plug-in support is available. The div is initially hidden so that it doesn't show
  61. when JavaScript is disabled.
  62. -->
  63. <div id="flashContent">
  64. <p>
  65. To view this page ensure that Adobe Flash Player version
  66. ${version_major}.${version_minor}.${version_revision} or greater is installed.
  67. </p>
  68. <script type="text/javascript">
  69. var pageHost = ((document.location.protocol == "https:") ? "https://" : "http://");
  70. document.write("<a href='http://www.adobe.com/go/getflashplayer'><img src='"
  71. + pageHost + "www.adobe.com/images/shared/download_buttons/get_flash_player.gif' alt='Get Adobe Flash player' /></a>" );
  72. </script>
  73. </div>
  74. <noscript>
  75. <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="${width}" height="${height}" id="${application}">
  76. <param name="movie" value="${swf}.swf?version=1.0" />
  77. <param name="quality" value="high" />
  78. <param name="bgcolor" value="${bgcolor}" />
  79. <param name="allowScriptAccess" value="sameDomain" />
  80. <param name="allowFullScreen" value="true" />
  81. <param name="FlashVars" value="employeeName=中文&language=en_US"/>
  82. <!--[if !IE]>-->
  83. <object type="application/x-shockwave-flash" data="${swf}.swf?version=1.0" width="${width}" height="${height}">
  84. <param name="quality" value="high" />
  85. <param name="bgcolor" value="${bgcolor}" />
  86. <param name="allowScriptAccess" value="sameDomain" />
  87. <param name="allowFullScreen" value="true" />
  88. <param name="FlashVars" value="employeeName=中文&language=en_US"/>
  89. <!--<![endif]-->
  90. <!--[if gte IE 6]>-->
  91. <p>
  92. Either scripts and active content are not permitted to run or Adobe Flash Player version
  93. ${version_major}.${version_minor}.${version_revision} or greater is not installed.
  94. </p>
  95. <!--<![endif]-->
  96. <a href="http://www.adobe.com/go/getflashplayer">
  97. <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
  98. </a>
  99. <!--[if !IE]>-->
  100. </object>
  101. <!--<![endif]-->
  102. </object>
  103. </noscript>
  104. </body>
  105. </html>

flashvars 传值

传递的方式一致:

<param name="FlashVars" value="myName=julabs&amp;myHometown=china" />

<embed src="demo.swf" FlashVars="myName=julabs&amp;myHometown=china" ........ />

demo.swf??u1=good&u2=bad

其中可以在FlashVars中指定,也可以通过 
movie或 src中的swf url指定参数,修改所有包含flashvar的地方

获取flashVars的值

Flex4中获取flashVars值:(Flex4的取值方式与Flex3不同)

xxx = FlexGlobals.topLevelApplication.parameters.employeeName;

xxx = FlexGlobals.topLevelApplication.parameters.language;

Flex3中的取值方式为:

XXX = Application.application.parameters.employeeName;

Flex4 flashVars 传值的更多相关文章

  1. mono for android Listview 里面按钮 view Button click 注册方法 并且传值给其他Activity 主要是context

    需求:为Listview的Item里面的按钮Button添加一个事件,单击按钮时通过事件传值并跳转到新的页面. 环境:mono 效果: 布局代码 主布局 <?xml version=" ...

  2. ASP.NET MVC 5 Web编程5 -- 页面传值的方式

    本篇文章将讲述MVC的页面传值方式,具体包括:后端向前端传值(Controller向View传值):前端向后端传值(View向Controller传值):Action与Action之间的传值. 回顾 ...

  3. MUI APP关于页面之间的传值,plusready和自定义事件

    最近在用MUI开发这个APP,发现有时候这个plusready不起作用,表现在,这个页面如果重复打开,这个plusready就进不去,然后上一个页面传过来的值,就没法接收了.这个经过MUI官方确认,是 ...

  4. Android开发之Activity的创建跳转及传值

    在Android系统的江湖中有四大组件:活动(Activity), 服务(Service), 广播接收器(Broadcast Reciver)和内容提供者(Content Provider).今天所介 ...

  5. MVC 传值

    1.ViewBag    Controller:ViewBag.Message = "Hello, Word";    View:@ViewBag.Message   注:View ...

  6. Java传值和传址

    调用函数时,传的参数过去可能是传值,也可能是传址.如果是传值,函数内部的操作对参数的值没有影响:如果是传址,函数内部的操作是对参数指向的内存进行操作,会影响参数的值. Java到底是传值还是传址?用下 ...

  7. Jquery 页面间传值(非QuerryString)

    实现原理: 实现方式不是很复杂,父页面A打开一个子页面 A1,并同时写一个带参数的接收数据函数Receive(result),在A1页面进行逻辑操作,然后调用父页面A的Receive(result)函 ...

  8. Activity往另外一个Activity传值,Fragment获取另外一个Activity里面的值。

    在oneActivity中实现跳转到MainActivity //intent 用来跳转另外一个MainActivity,bundle传值到MainActivity         Intent Ma ...

  9. webform Repeater重复器、地址栏传值、Response

    Repeater: 重复器 <HeaderTemplate></HeaderTemplate> - 头模板:在循环开始时,其内容只会打印一遍 <ItemTemplate& ...

随机推荐

  1. jQuery(3)——DOM操作

    ---恢复内容开始---   jQuery中的DOM操作 [DOM操作分类] DOM操作分为DOM Core(核心).HTML-DOM和CSS-DOM三个方面. DOM Core:任何一种支持DOM的 ...

  2. Github朝花夕拾

    删除fork的项目   下载指定revision的repository 通过git log查看提交历史,最好是GUI查看 然后执行命令git reset –hard <sha1> 同步到最 ...

  3. caffe编译出现的新错误

    1.include/caffe/blob.hpp:9:34: fatal error: caffe/proto/caffe.pb.h: No such file or directory #inclu ...

  4. 下载PhpStorm并进行激活

    1.首先登陆PhpStorm官网http://www.jetbrains.com/phpstorm/ 点击附图中的download now 按钮 2.第二步根据os x \wind\ linux进行下 ...

  5. 跨域资源共享(Cross-Origin Resource Sharing)

    目前中文方面的资料还比较少,能搜索到的那仅有的几篇相关介绍,也几乎是雷同的,其中C#方面的更是少之又少. XMLHttpRequest接口是Ajax的根本,而Ajax考虑到安全性的问题,是禁止跨域访问 ...

  6. WebService第一天

    WebService第一天 [课程安排]: 整体安排:2天: 第一天:webservice入门,JDK规范和实现:jax-ws,相关概念 第二天:CXF框架,和spring的集成开发.Hessian的 ...

  7. php:跨域

    一个没那么难的历史难题,其实只要在被请求端,加一句: header('Access-Control-Allow-Origin: *'); 然后--然后没有了. //跨域访问的时候才会存在此字段 $or ...

  8. 如何在sublime中使用sass

    搞了好久,终于把sass搞定了. 最开始,我是想使用koala来实现对sass的实时编译的,但是每当我保存的时候,总是弹出erro错误,即无法编译生成css文件,百度了半天,问了好久,这个问题还是没能 ...

  9. JS 点击复制Copy

    1.实现点击按钮,复制文本框中的的内容 1 <script type="text/javascript"> 2 function copyUrl2() 3 { 4 va ...

  10. java 读取excel(Map结构)xls

    package com.sun.test; import java.io.FileInputStream;import java.io.FileNotFoundException;import jav ...