我正在使用Starling,我已经在flash中建立了我的游戏。我可以在手机上测试,一切都很好。现在我在starling wiki上读到,为了获得更好的性能,我需要构建一个“真正的”版本构建,而Flash发布的版本不是优化版吗?如果我正确理解,我如何将我的构建从闪存CC转换为一个真正的发布版本?
发布于 2014-03-04 23:42:11
除了使用FlashDevelop或FlashDevelop构建它之外,如果您有Flex (如果您已经安装了这两个程序中的任何一个--如果没有,您可以从http://www.adobe.com/devnet/flex/flex-sdk-download.html下载它),那么您可以在bin文件夹中找到optimizer.exe命令行工具。
它所做的是删除跟踪语句、调试代码(和符号)和不必要的元数据--我认为这主要是“发布”构建所做的。要使用它,请使用Flash构建SWF,然后转到Flex bin文件夹,然后在命令行中键入:
optimizer -keep-as3-metadata Bindable Managed ChangeEvent NonCommittingChangeEvent Transient
-input PATH/TO/SWF/input_swf
-output PATH/TO/SWF/output_swf您可以在这里获得更多信息:US/Flex/4.0/UsingSDK/WS2db454920e96a9e51e63e3d11c0bf674ba-7ff6.html#WS2db454920e96a9e51e63e3d11c0bf69084-7ad9
但是,试着研究一个合适的编码环境,而不是直接从Flash中进行。就我个人而言,我更喜欢FlashDevelop (http://flashdevelop.org/) --它是免费的、快速的,从调试到发布很简单。但是,Flash在iOS发布方面具有优势,如果您拥有Creative成员资格,那么无论如何您都有它(否则它就会付费)。它也是跨平台的,而FlashDevelop是Windows专用的。
发布于 2014-03-04 23:03:38
我在Project->Export Release Build中使用Flash运行自动发布构建过程。或者可以运行Ant构建(也可以使用/Eclipse)。
但是,至于在flash中这样做,我不确定是否存在这个确切的过程。您可以更改File->Publish中的一些高级设置,如省略跟踪语句(checked)、允许调试(未选中),这是发行版构建的部分功能。
对于带有AIR的移动项目,在快速生成或标准构建的配置下也有使用Flash的选项。
快速构建
标准构建
发布于 2014-03-04 23:04:50
有几种类型的AIR移动应用程序构建:
- Ad Hoc (iOS)
- This type of build is meant for testing a release-quality build and can be distributed to non-development devices that are located on the Ad Hoc Mobile Provisioning Profile you created in the Apple Dev Portal
- App Store (iOS)
- This is the only build type that Apple will accept for the App Store. Any other build type will be automatically rejected. It cannot be installed on any device unless it comes from the App Store. Must use an App Store Mobile Provisioning Profile created in the Apple Dev Portal. No performance differences between this and Ad Hoc (same exact build, just different signature)
https://stackoverflow.com/questions/22184603
复制相似问题