What is the right way to embed a Flash movie for XHTML compliance?
I have a simple movie that has a tiny bit of Actionscript 2.0.
- What is the best way to embed a flash movie for XHTML compliance?
- 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)

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
发布评论
需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。