Flex/Actionscript 3 动态宽度/高度变化
是否可以使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先使用 code.google.com/p/swfobject 而不是嵌入标签,是的,您可以直接更改大小,如 this.width=width_from_js;但我记得 swfobject 将允许您在原始 js 中执行此操作,只需检查它并让我们知道。 :) 谢谢
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