Flash 8 Actionscript - Stage.height

发布于 2024-08-02 00:10:27 字数 138 浏览 2 评论 0原文

我正在使用 OOP AS2 构建一个完整的网站。 我希望能够根据脚本当前显示的“页面”来更改 Flash 窗口(舞台)的大小。 换句话说,不同的页面将具有不同的高度,我需要浏览器滚动条进行相应的操作。

必须使用javascript吗?

I am building a complete site using OOP AS2. I want to be able to change the size of the flash window (the stage) according to the "page" that the script is currently showing. In other words, different pages will have different hieghts and I will need the browser scrollbar to act accordingly.

Must javascript be used?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

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

评论(3

寂寞花火° 2024-08-09 00:10:27

在将 lash SWF 写入浏览器 HTML 后,要调整其大小,您必须使用 Javascript。

此技术有点旧,但应该对您有用。 我会也看看我是否可以更新一下并发布更新的版本。

To resize the lash SWF once it has been written to the browser HTML, yes you will have to use Javascript.

This technique is a bit old, but it should work for you. I'll also see if I can update it a bit and post a newer version.

挽心 2024-08-09 00:10:27

如果您确实需要调整 Flash 内容的大小,我建议您查看著名的 SWFFIT 脚本 http://swffit .millermedeiros.com/ 它使用 javascript 调整 Flash 内容的大小,并处理所有艰苦的工作,您只需要调用一些 javascript 函数,但整个脚本有详细的文档记录并且易于使用。

If you really need to resize your flash content, I suggest you to take a look in the famous SWFFIT script http://swffit.millermedeiros.com/ it resizes the flash content using javascript, and take care of all the hard work on it, you'll just need to call some javascript functions, but the whole script is well documented and easy to use.

︶ ̄淡然 2024-08-09 00:10:27

不,一点也不,只是事情的处理方式不同而已。

您正在寻找:

_root._height;

No, not at all, it's just that things were done differently.

You are looking for:

_root._height;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文