问题描述
有什么办法来调整使用ActionScript或其他方法将整个Flash项目?
我创建了一个1024x768的Flash CS3中的应用,但在规范的仔细检查,我现在认识到它必须是800×600。除了手动让一切更小的,我想改变窗口大小,如果有人拖着外缘。或者添加一个按钮,允许1024×768 800×600和之间切换。这可能吗?
我的意思是这样的:
stage.stageWidth = 800;
stage.stageHeight = 600;
是stageWidth和stageHeight是只读的,尽管文档。但如果SWF被嵌入在网页中,则改变其元素的宽度和高度将改变阶段大小且scaleMode将决定如何被处理的。所有主权财富基金在我Enjoy3D网站做到这一点的窗口大小调整...
Is there any way to resize an entire Flash project using Actionscript or some other method?
I have created a 1024x768 Flash CS3 application, but upon closer inspection of the specifications, I now realise it has to be 800x600. Instead of manually making everything smaller, I'd like to resize the window as if someone were dragging the outside edge. Or perhaps add a button that allows switching between 1024x768 and 800x600. Is this possible?
I mean something like this:
stage.stageWidth = 800;
stage.stageHeight = 600;
Yes stageWidth and stageHeight are readonly, despite the docs. But if the SWF is embedded in a web page, then changing its element width and height will change the stage size and scaleMode will determine how that is handled. All the SWFs at my Enjoy3D web site do this on window resize...
这篇关于调整窗口的ActionScript 3.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!