What is the right way to embed a Flash movie for XHTML compliance?

What is the right way to embed a Flash movie for XHTML compliance?

秋意浓 发布于 2021-11-29 字数 407 浏览 822 回复 1 原文

I have a simple movie that has a tiny bit of Actionscript 2.0.

  1. What is the best way to embed a flash movie for XHTML compliance?
  2. Which version should I export for?

The code that Flash automatically outputs is so bloated, I'm not sure what I need. Also, I noticed that a Macromedia URL is in the code, and now that Adobe owns Flash, I wonder if this is a mistake.

如果你对这篇文章有疑问,欢迎到本站 社区 发帖提问或使用手Q扫描下方二维码加群参与讨论,获取更多帮助。

扫码加入群聊

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

琉璃梦幻 2022-06-07 1 楼

The best way to embed a flash file in HTML is using swfobject by Google : http://code.google.com/p/swfobject/

In the end it goes like :

<script type="text/javascript">

var flashvars = {
  name1: "hello",
  name2: "world",
  name3: "foobar"
};
var params = {
  menu: "false"
};
var attributes = {
  id: "myDynamicContent",
  name: "myDynamicContent"
};

swfobject.embedSWF("myContent.swf", "myContent", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);

</script>

Hope that helps