flex与web页面通信的flashVars属性的使用方法
2011-07-20 19:02
495 查看
flex从html读取数据的方法是使用flashVars。
在IE中生效的方法,需要在object里添加 <param name="flashVars" value="userName=user1&password=pass123" />
在firefox/chrome中生效的方法,需要在embed里添加 flashVars="userName=user1&password=pass123"
例如:
在IE中生效的方法,需要在object里添加 <param name="flashVars" value="userName=user1&password=pass123" />
在firefox/chrome中生效的方法,需要在embed里添加 flashVars="userName=user1&password=pass123"
例如:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="test" width="100%" height="100%" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="test.swf" /> <param name="flashVars" value="userName=user1&password=pass123" /> <param name="allowScriptAccess" value="sameDomain" /> <embed src="test.swf" quality="high" bgcolor="#869ca7" flashVars="userName=user1&password=pass123" width="100%" height="100%" name="test" align="middle" play="true" loop="false" quality="high" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer"> </embed> </object>
相关文章推荐
- 如何在ASP.NET中制作Web用户自定义控件,并在aspx页面中使用它的方法和属性?
- 在本地UI使用webview,在html页面用js与android通信方法。
- 使用Flashbuilder/Flashbuilder-plugins搭建Flex工程每日构建(自动化构建)的方法
- WebView的简单使用和常用方法、属性!
- web server使用php生成web页面的三种方法总结
- DELPHI、FLASH、AS3、FLEX使用Protobuf(google Protocol Buffers)的具体方法
- Flex程序与包装页面(wrapper)通信方法小结
- Android中使用WebView加载H5页面的方法
- 扫描识别工具Dynamic Web TWAIN使用教程:属性/方法/事件介绍
- 第五种方式,python使用组合来添加类方法和属性(二),以selenium的webdriver为例
- DELPHI、FLASH、AS3、FLEX使用Protobuf(google Protocol Buffers)的具体方法
- Android使用WebView播放flash的方法和JavaScript调用本地方法
- 对启用了ReadOnly属性的WebEdit控件无法使用Set方法赋值的处理办法
- Flex程序与包装页面(wrapper)通信方法小结
- web server使用php生成web页面的三种方法总结
- [原]as3 flash web 应用 (6)swfobject的使用:将flash嵌入页面
- Web页面向内嵌的Flash (AS) 传递参数的方法
- FCKeditor 一个开源的web页面文本编辑工具,在vs 2005中的使用方法
- 一步步学习SPD2010--第十四章节--在Web页面使用控件(1)--处理功能区和标签属性任务窗格
- 利用Flash作为桥梁连接WEB页面和服务器端Socket通信,达到服务器主动"推"客户端的效果