用Flex Builder在一个Flex项目中编译多个Application(.mxml)

One day, i want to compile my business app with TestSuiteRunner (from FlexUnit) app at one time using Flex Builder, but i never do this before. Flex Builder can not set two application once. But, it can set modules to be compiled.

1. Add a new mxml application into one existed app and named it as what you want. Mine is TestApp.mxml.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-1


2. Use the right key of your mouse to click your application listed in Flex Navigator, then open the Properties for yourappname dialog.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-2

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-3

3. Select Flex Modules panel, “add” TestApp.mxml as a module. Do not “browse” to add TestApp.xml, you can not find it in the Select Module dialog, just edit the Source path like this “src/TestApp.mxml”. Pay attention here : you should select “Do not optimize (module can be loaded by multiple applications)” instead of the default option in order to generate a standalone SWF file.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-4

4.Compile your application using Build Project or Builder All as you wish. Then you can find two, or more if any, SWF files displayed in bin-debug directory.

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-5

compile-multi-flex-applications-contained-in-one-project-with-flex-builder-img-6


评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值