如何从其他 Flex 项目中调用 Flex 项目?
我有 2 个 Flex 项目,它们是在 flash builder 4.5 中创建的......如何我可以调用一个项目从第二个???最好的会执行到同一个窗口......我对这两种可能性都很感兴趣(在浏览器和空气中也是如此)。
谢谢你的帮助
I have 2 flex projects which were create in flash builder 4.5.....how can i call one project from second??? the best would execute to the same window.... I'm interesting about both possibility (in browser and air too).
thanks for help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在两个项目之间共享代码的推荐方法是创建第三个项目,即 ActionScript/Flex 库。这将封装多个项目(Flex/AIR/Pure AS3)之间的公共代码并将它们编译成一个 .swc 文件。
在任何需要访问该代码的项目中,您可以右键单击该项目 ->属性-> Flex 构建路径 ->库路径选项卡(顶部)->添加项目->选择该通用动作脚本库。
共享代码的 hack 方法右键单击项目 ->属性-> Flex 构建路径 ->源路径选项卡(顶部)->添加文件夹。选择要将外部资源拉入项目的文件系统路径。通常不建议这样做,因为当您想与其他开发人员共享项目时,它会降低导入项目的可移植性。他们会发现您选择的文件系统路径可能不存在于他们自己的本地计算机上。
The recommended way to share code between two projects is to create a 3rd project that is an ActionScript/Flex Library. This would encapsulate the common code between multiple projects (Flex/AIR/Pure AS3) and compile them into one .swc file.
In any of the projects you need to access that code, you can right click on the project -> Properties -> Flex Build Path -> Library Path Tab (at the top) -> Add Project -> Select that common actionscript library.
The hack way to share code right click on the project -> Properties -> Flex Build Path -> Source Path Tab (at the top) -> Add Folder. Select the file system path to where you want to pull external resources into your project. Generally this is not recommended because it makes the importing project less portable when you want to share the project with other developers. They'll find out the hard way that the file system path you selected may not exist on their own local machines.