在Flash CS5.5中,我想为iPhone和iPhone4发布。我的舞台需要为 640x960 吗?

发布于 2024-12-23 04:46:55 字数 225 浏览 3 评论 0原文

据我了解,在 Air for IOS 设置中,您可以将分辨率设置为“高”。然而,当我这样做并在我的 3gs 和 iphone4 上安装该应用程序时,结果是不同的。

我想知道设置项目的正确方法是什么,以及发布项目以适应两种分辨率设备的正确方法。

  1. fla 中的舞台尺寸
  2. 我的 stageScaleMode 应设置为多少?
  3. 还有什么我应该做的吗?

I understand that in the Air for IOS settings you can set the Resolution to High. However, when I do, and I install the app on my 3gs and my iphone4, the results are different.

I'd like to know what is the proper way of setting up a project, and the proper way of publishing it to suite both resolution devices.

  1. Stage Dimensions in the fla
  2. What should my stageScaleMode be set to?
  3. Is there anything else I should be doing?

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

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

发布评论

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

评论(2

胡渣熟男 2024-12-30 04:46:55

我自己的问题的简短答案是这样的...
阅读 Renaun Erickson 的帖子。他解释得很好。

长答案。
在我的情况下,(实际上永远不会提交到应用程序商店)因为我没有矢量资产的奢侈,在运行时动态缩放不会产生好的结果结果。我最终使用了以下...

  • 的舞台
  • 960x640 stage.scaleMode = StageScaleMode.EXACT_FIT;
  • stage.align = StageAlign.TOP_LEFT;

这在大多数情况下并不理想,不建议这样做。
建议在 Vector 中创建所有资源,然后使用 flash 的 screenResolutionX & screenResolutionY,您可以在运行时缩放资产。

关于这个主题,还有更多的内容可以找到,我会的,但这让我完成了必须做的快速而肮脏的工作。

The short answer to my own question is this...
read Renaun Erickson's post. He explains nicely.

The long answer.
In my situation, (never actually going to be submitted to app store) because I don't have the luxury of vector assets, scaling dynamically at runtime is not going to produce good results. I ended up using the following...

  • a stage of 960x640
  • stage.scaleMode = StageScaleMode.EXACT_FIT;
  • stage.align = StageAlign.TOP_LEFT;

This is not ideal in most situations and It is not recommended.
Recommended would be to create all of your assets in Vector, then using flash's screenResolutionX & screenResolutionY, you can scale assets at runtime.

This is much more to find on the subject, and I will but this got me through the quick and dirty job I had to do.

俯瞰星空 2024-12-30 04:46:55

对于流动/液体布局,我根据舞台宽度和高度更新显示:

stage.stageWidth
stage.stageHeight

您还可以定位 iPad 并使用相同的 IPA 处理全屏。

舞台比例模式应该是无比例:

import flash.display.StageAlign;
import flash.display.StageScaleMode;

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

For flow / liquid layout, I update display based upon stage width and height:

stage.stageWidth
stage.stageHeight

You can also target iPad and handle full-screen with the same IPA.

Stage scale mode should be no scale:

import flash.display.StageAlign;
import flash.display.StageScaleMode;

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