<object
   />
 </object>
 在as3的flash项目里面这样使用

var imageUrl:String=root.loaderInfo.parameters["file"];

var imageUrl:String=root.loaderInfo.parameters.file;

这样就可以取得

<param name="flashvars" value="file=preview.jpg" />

里的参数,如果有多个可以这样file=preview.jpg&file1=preview1.jpg...

也可以直接放在<param name="movie" value="player-viral.swf" />
swf文件的后面。

但这种方式不支持Firefox,解决办法是在

<embed
   type="application/x-shockwave-flash"
    的swf文件后面再添加要传递的参数。

相关文章:

  • 2022-12-23
  • 2021-11-29
  • 2021-06-20
  • 2021-07-06
  • 2021-04-01
  • 2021-09-28
  • 2021-12-21
  • 2022-12-23
猜你喜欢
  • 2021-10-26
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案