开发者

How can I call flex project from other flex project?

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开发者_StackOverflow中文版 help


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜