开发者

How to organize multiple flash projects sharing common lib as for classpaths

开发者 https://www.devze.com 2023-01-31 06:11 出处:网络
Let\'s say I have multiple projects organized as commonlib superorg org1 suborg11 suborg12 or开发者_高级运维g2

Let's say I have multiple projects organized as

commonlib
superorg
   org1
     suborg11
     suborg12
   or开发者_高级运维g2
     suborg21

How do you declare import and manage classpaths as for classes in commonlib package ?


In either the flash ide or flash builder you can specify global classpaths. That way your import statements are the same across projects without having a million copies of the files. Heres a tut - http://asgamer.com/2009/easily-use-frameworks-in-multiple-projects-by-setting-a-global-class-path


Compile your "reused classes" to swc files and add them to your projects. If you are changing your classes often you could setup a Flex Library Project and add the whole library Project to your source in the Project settings. This will keep the files up to date.

0

精彩评论

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