如何禁用Flash桌面播放器的Flash场景的大小调整? [英] How to disable resizing of flash scene in flash desktop player?
问题描述
我使用的是Flash CS5,当我将文件显示到swf时,我注意到,在导出并在Flash播放器(在桌面上)中播放后,我可以改变窗口的大小和场景本身事件,虽然我已经设置了宽度和高度维度例如468x60。
因此,坏消息是,如果我从这个区域移动了一些物体,而在横幅中,我没有看到它们在Flash播放器中,我可以看到所有的这是不好的。
是否有一个设置导出选项来禁用此行为或一些动作,所以我的客户端将无法看到后面的烂摊子-scenes:)?
我可以使用动作删除一些对象,但是如果我有循环背景图像,则必须大于468px。在我的情况下是3x。
感谢您提供任何建议。
解决方案
独立的flashplayer会调整大小,因为它是一个窗口
但是,您可以应用468x60 掩码到您的根DisplayObject
upd:
var maskMC:MovieClip = _root.createEmptyMovieClip(mask,_root.getNextHighestDepth());
maskMC.beginFill(0x000000,100);
maskMC.moveTo(0,0);
maskMC.lineTo(0,60);
maskMC.lineTo(468,60);
maskMC.lineTo(468,0);
maskMC.lineTo(0,0);
_root.setMask(maskMC);
I am using Flash CS5 and when I exprt my file to swf I notied that after exporting and playing it in Flash player (on my desktop) I can change the size of the window and the scene itself eventthough I have set the width and height dimension to e.g. 468x60.
So, the bad thing is that if I ahve some objects that are moving from this area and in banner I do not see them in flash player I can see all which is not good.
Is there a setting in export option to disable this behavior or some actionscript, so my client will not be able see the "mess-behind-the-scenes" :)?
I can probably remove some objects using actionscript, however if I have looping background image it is necessary to be bigger than 468px In my case 3x.
Thanks in advance for any advice.
standalone flashplayer will be resizable because it's a windowed app.
however, you can apply a 468x60 mask to your root DisplayObject
upd:
var maskMC:MovieClip = _root.createEmptyMovieClip("mask", _root.getNextHighestDepth());
maskMC.beginFill(0x000000, 100);
maskMC.moveTo(0, 0);
maskMC.lineTo(0, 60);
maskMC.lineTo(468, 60);
maskMC.lineTo(468, 0);
maskMC.lineTo(0, 0);
_root.setMask(maskMC);
这篇关于如何禁用Flash桌面播放器的Flash场景的大小调整?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!