简体   繁体   English

使AIR SWF分辨率独立于Android

[英]Make AIR swf resolution independent on Android

with the Flash IDE, I must create an AIR project for Android mobile devices (NOT tablets): my problem is that I would like to make it resolution-independent. 使用Flash IDE,我必须为Android移动设备(非平板电脑)创建AIR项目:我的问题是我想使其与分辨率无关。 Android-equipped mobile devices are many and they may have different screen dimensions. 配备Android的移动设备很多,并且它们的屏幕尺寸可能不同。

So, first of all, I would like to know if I must choose a particular stage dimension in my Flash project. 因此,首先,我想知道是否必须在Flash项目中选择特定的舞台尺寸。 Secondly, I would like to know how to adapt the content to the screen resolution and if it has any drawbacks (stretching, etc.) that can damage the appearence of the app. 其次,我想知道如何使内容适应屏幕分辨率,以及是否存在任何可能损害应用外观的缺点(拉伸等)。 Thanks in advance. 提前致谢。

lash stage dimensions and content dimensions can be separated. 睫毛阶段尺寸和内容尺寸可以分开。

When you are using ( at the start of your application ): 使用时(在应用程序的开头):

stage.scale = StageScale.NO_SCALE;

you are able to separate the content size from the stage size. 您可以将内容大小与舞台大小分开。 But then you will be needing to do the resize by your self depending on the stage.stageWidth and stage.stageHeight parameters. 但是,然后您将需要根据stage.stageWidthstage.stageHeight参数自行调整stage.stageHeight

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM