Flex 库中的循环依赖
我有两个相互引用的 Flex 库。两者都使用链接类型“External
”,然后我使用 Loader 类手动加载。
我收到错误“在项目:foo 的构建路径中检测到循环
”。
有什么办法可以解决这个问题吗?也许是编译器的参数什么的。
我认为应该不会有问题,因为使用 external
链接类型,源代码不会被编译到库中......
I have two Flex libraries that reference each other. Both use link type "External
", and I manually load then with the Loader class.
I'm getting the error "A cycle was detected in the build path of project: foo
".
Is there any way to resolve this? Maybe a parameter for the compiler or something.
I don't think there should be a problem, since with the external
link type the source code doesn't get compiled into the library...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
听起来更像是您需要重新考虑您的代码。
也许您可以通过使用接口以一种方式消除依赖性?
如果您可以概述依赖关系,也许我或其他人可以提供有关如何重新设计结构的想法。
编辑:
你给我一个减号真是太好了...让我引用一下关于该主题的维基百科文章:
(强调)
但是话又说回来,也许你比维基百科上的集体更聪明......
It sounds more like you need to rethink your code.
Maybe you can eleminate dependency one way by using interfaces?
If you could give an overview of the dependencies maybe I or someone else could give ideas on how to redesign the structure.
Edit:
How nice of you to give me a minus... Let me quote the Wikipedia article on the subject:
(Emphasis added)
But then again, maybe you are smarter than the collective that writes on wikipedia...