一. swf?传参

 

html代码:


<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html charset=utf-8″ />
<title>as</title>
</head>
<body>
<object classid=”clsid:D27CDB6E-AE6D-11cf-96B8-444553540000″ codebase=”http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0″ id=”testSWF” width=”550″ height=”400″ title=”test”>
<param name=”movie” value=”test.swf?sname=xxhui” />
<param name=”quality” value=”high” />
<embed src=”test.swf” quality=”high” pluginspage=”http://www.macromedia.com/go/getflashplayer” type=”application/x-shockwave-flash” width=”550″ height=”400″></embed>
</object>
</body>
</html>

 


Flash 代码一: (使用_root):


x_txt.text = _root.sname;


 

Flash 代码二:


String.prototype.$_GET = function(Parameter:String) {
return (this.toLowerCase().split(Parameter.toLowerCase()+=”)[1].split(”&”)[0]);
};
//获得URL中的user参数的值
var sname:String = this._url.$_GET(”sname”);
 
x_txt.text 
= sname;

相关文章:

  • 2021-07-25
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-26
  • 2022-12-23
  • 2021-10-18
  • 2021-07-07
  • 2021-12-22
  • 2021-11-16
相关资源
相似解决方案