我应该如何设置引用通用控件的 Flex 3 项目?

发布于 2024-08-27 09:34:40 字数 331 浏览 11 评论 0原文

我不是 Flash 开发人员,我在弄清楚如何在 Flex Builder 中设置这两个项目时遇到问题。

我已经创建了 projA,它有一个 .mxml,引用了多个自定义控件和文件。 projA 中来自 com.xxx.controls 的皮肤

我现在必须构建 projB,它也有一个 .mxml,它将创建一个不同的 .swf。我想使用 projA 中的一些相同控件,

我目前通过命令行和 nant 构建 projA,并且需要对 projB 执行相同的操作。

我应该创建一个新项目来将所有通用控件移入其中吗?然后我如何在项目和项目中使用这个库项目?通过命令编译?

谢谢!

I'm not a flash developer, I'm having issues figuring out how I should set up these two projects that I have in Flex Builder.

I've already created projA which has a .mxml that references several custom controls & skins from com.xxx.controls within projA

I now have to build projB which also has a .mxml that will create a different .swf. I want to use some of the same controls from projA

I currently build projA through the command line and nant and will need to do the same for projB.

Should I create a new project to move all of the common controls into? How do I then use this library project in both the projects & compile via command?

Thanks!

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

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

发布评论

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

评论(1

骑趴 2024-09-03 09:34:40

是的,处理此问题的最佳方法是创建一个单独的 (swc) 库项目并在两个项目中引用该项目。

您可以在 Flex/Flash Builder 中两个项目的构建路径设置中以及通过 ant 中的 include-libraries 编译器选项设置对库的引用。

Yes, the best way to handle this is to create a separate (swc) library project and reference that in both projects.

You can set the references to the libraries in the build path settings of both projects in Flex/Flash Builder and via the include-libraries compiler option in ant.

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