如何调整 Flash 动画的大小以适合 HTML 容器?
我有一个尺寸为 1280x1024 的 Flash 动画,我想将其嵌入到 HTML 文件中。我希望 flash 文件以 800x600 显示。这是我的代码:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<body align="center">
<object>
<param name="movie" value="/flash/connect.swf" />
<embed src="/flash/connect.swf" width="800" height="600"></embed>
</object>
</body>
</html>
嗯,它不起作用。我确实有 800x600 帧,但 Flash 文件本身仍以其原始大小显示。有人可以告诉我我在这里做错了什么吗?
谢谢, 安德烈
I have a flash animation with the size of 1280x1024 and I want to embed it into an HTML file. I want the flash file to be displayed in 800x600. This is my code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<body align="center">
<object>
<param name="movie" value="/flash/connect.swf" />
<embed src="/flash/connect.swf" width="800" height="600"></embed>
</object>
</body>
</html>
Well, it doesn't work. I do have a 800x600 frame, but the flash file itself still displayed on its original size. Can someone tell me what have I done wrong here?
Thanks,
Andree
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您必须在预编译代码中设置参数 stage.align = "left" stage.scale = "noscale" 并编译它以保留尺寸
You have to set inside as precompiled code the parameters stage.align = "left" stage.scale = "noscale" and compile it to preserve dimensions
AFAIK,Flash 对象无法在运行时调整大小。它们只能被重新创作。有人纠正或证实我。
AFAIK, Flash objects cannot be resized run-time. They can only be re-authored. Someone correct or confirm me.
(a) 将其添加
为闪存参数。
(b) 将对象的宽度和高度设置为 100%。
然后闪光灯将在其容器中正确缩放。
(a) Add this
as a flash parameter.
(b) Set the width and height of the object to be 100%.
The flash will then scale correctly in its container.