Flex/Actionscript 3 动态宽度/高度变化

发布于 2024-09-16 07:32:44 字数 150 浏览 2 评论 0原文

是否可以使用 ActionScript 3 动态(不在项目选项中)更改舞台尺寸? 我想要创建一个 400x300px 加载器,但我也希望它加载具有更大或更小尺寸的动画。然后我会更改加载器的宽度和高度,以使加载的动画适合。
有什么办法可以做到吗?
谢谢。

Is it possible to dynamically (not in the project's options) change the dimensions of the stage by using ActionScript 3?
I'd want to create a 400x300px loader, but I also want it to load animations that have bigger or smaller dimensions. I would then change the width and height of the loader to make the loaded animations fit well.
Is there any way to do that?
Thanks.

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

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

发布评论

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

评论(1

§普罗旺斯的薰衣草 2024-09-23 07:32:44
<YourLoaderOrContainerWithAnimation top="0" bottom="0" left="0" right="0" width="100%" height="100%" minWidth="400" minHeight="300" maxWidth="400" maxHeight="300"/>

首先使用 code.google.com/p/swfobject 而不是嵌入标签,是的,您可以直接更改大小,如 this.width=width_from_js;但我记得 swfobject 将允许您在原始 js 中执行此操作,只需检查它并让我们知道。 :) 谢谢

<YourLoaderOrContainerWithAnimation top="0" bottom="0" left="0" right="0" width="100%" height="100%" minWidth="400" minHeight="300" maxWidth="400" maxHeight="300"/>

first of all use code.google.com/p/swfobject instead of embed tag, and yes you can directly change sizes like this.width=width_from_js; but as I remember swfobject will allow you to do this in raw js, just check it and let us know. :) thanks

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