Flex 将组件从 Web 项目添加到库项目
我有一个 Flex 库项目,假设该项目作为基本实用程序,将被多个其他项目使用。我有许多组件,例如自定义渲染器等,它们正在库项目中使用。
现在,我在 Web 项目中包含[在 Flex 属性的构建属性中添加源路径]这个库项目。要求是将一些项目特定的组件从 Web 项目添加到库项目中存在的组件中。
因此,基本要求是将此库项目用于多个其他项目,并能够通过项目添加项目特定代码。
怎么能做到这一点呢?有什么框架或者解决方案吗?
谢谢 安吉
I have a flex library project, assume this project as basic utility which will be used by multiple other projects. I have many components, such as custom renderer etc which are being used in the library project.
Now, I include [add source path in the build properties in flex properties] this library project in a web project. The requirement is to add few project specific components from the web project to the components present in the library project.
So, the basic requirement is to use this library project for multiple other project and be able to add the project specific code through the project.
How can do this? Is there any framework or any solution?
Thanks
Anji
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
RSL 库正是您所寻找的,它允许您在项目之间共享类定义。
http://livedocs.adobe.com/flex/3 /html/help.html?content=rsl_09.html
您还可以将组件导出到 swc 文件(使用 flash builder,创建 Flex 库项目)并将此 swc 包含到您的不同项目中。
RSL library is what you are looking for, it allow you to share class definitions between project.
http://livedocs.adobe.com/flex/3/html/help.html?content=rsl_09.html
You can also export your components to an swc file (with flash builder, create an Flex Library Project) and include this swc to your differents projects.