如何建立一个组合式空气应用程序FDT

如何建立一个组合式空气应用程序FDT

本文介绍了如何建立一个组合式空气应用程序FDT 5.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在,FDT不再AIR项目支持fdt.launch.Application,你怎么去构建模块,用于AIR应用程序?你不能只是创建多个空中发射的configs,因为几乎所有的属性在项目属性,而不是推出配置设置。难道我真的要为每个模块创建一个新的项目?有20个项目为一个应用程序看起来非常凌乱,当你使用能够使用一个项目,一个Ant脚本。

Now that FDT no longer supports fdt.launch.Application from AIR projects, how do you go about building modules for an AIR application? You can't just create multiple AIR launch configs because almost all the properties are set in the project properties rather than the launch config. Do I really have to create a new project for each module? Having 20 projects for one application seems awfully messy when you used be able to use one project and one Ant script.

下面是一个链接,我可能会使用一个示例build.xml文件:的build.xml

Here's a link to a sample build.xml file I might use:build.xml

推荐答案

通过FDT 5.5,你不能用你只使用FDT的Ant任务或发射器中提到的工作流程。 FDT的团队正在做出调整,这样就可以了。

With FDT 5.5, you cannot use the workflow you mentioned by only using FDT's ANT tasks or launchers. The FDT team is looking to make adjustments so that it can.

直到第二天(很快)次要版本,你有三种选择:

Until the next (soon) minor release, you have three options:

  1. 创建一个新的AIR项目,每个模块,并使用发射链。该技术(以及为什么收费)另外两个计算器的问题进行了描述,here和here.
  2. 创建另一个项目,是不是一个AIR项目,并用它来容纳你的模块。
  3. 创建一个自定义的项目类型
  1. Create a new AIR project for each module and use the Launcher Chain. Techniques for this (and why it s) are described in two other stackoverflow questions, here and here.
  2. Create another project that isn't an AIR project and use that to house your modules.
  3. Create a custom Project Type

创建每个模块的项目是不是不寻常的,因为它可能看起来。它实际上是在Java世界中建议的工作流程和许多大型团队以这种方式工作。他们会经常有10-50模块项目,并有1-2个开发人员每个模块上。对于小团队一个人的商店,这可能没有什么意义。

AIR project for each module

Creating a project for each module is not as unusual as it may it seem. It's actually the suggested workflow in the Java world and many large teams work this way. They will often have a project with 10-50 modules and have 1-2 developers working on each module. For small teams one-man shops, this might not make sense.

您也许能够创造另一个项目,是不是一个AIR项目,并用它来编译你的模块。如果你不使用AIR API的,这很容易;但是,如果你是,尝试调整你的SDK设置

You might be able to create another project that isn't an AIR project and use that to compile your modules. If you are not using AIR APIs, this is easy; however, if you are, try to adjust your SDK settings

这是一个黑客位的,不推荐一般使用;然而,这将解决您的问题。您可以使用的'黑客攻击'使用AIR SDK和放大器的自定义项目类型; API,但推出像一个Web项目。要利用这一点,把它放在你的FDT项目类型的文件夹:

This is a bit of a hack and not recommended for general use; however, it will solve your issue. You can use a custom project type that is 'hacked' to use the AIR SDK & API but launch like a web project. To use this, put it in your FDT Project Types folder:

有关OSX,将其放置在:/用户/ [用户名] /库/应用程序的\ Support / FDT / projectTypes

For OSX, place it in: /Users/[your user name]/Library/Application\ Support/FDT/projectTypes

...然后重新启动FDT。接下来创建一个简单的Web项目比右键单击> Flash项目>设置项目类型,选择这个新的项目类型。我打电话给我的空气模块

...then restart FDT. Next create a simple web project than right click >Flash Project>Set Project Type and choose this new project type. I called mine 'Air Module'

下面是一个例如项目类型下载:

这篇关于如何建立一个组合式空气应用程序FDT 5.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 21:11