How to use a relative path for a swc library in Flash Builder 4.6

时光怂恿深爱的人放手 提交于 2019-12-11 06:49:11

问题


I'm using Flash Builder 4.6 and in one of my ActionScript projects, I have a referenced .swc library file.

The way I added it was Project > Properties > Flex Library Build Path > Library Path tab > Add SWC...

Here a popup occurs and I must select a .swc file by browsing through my machine and selecting one. Once I do that, it'll display the added library like this:

somelibrary.swc - /Full/Path/to/the/swc/here/lib/somelibrary.swc

What I want to be able to do is use a relative path instead, like:

somelibrary.swc - ../../lib/somelibrary.swc

Does anyone know a way to do this or a workaround to be able to use relative paths for swc libraries in Flash Builder?

Thanks!


回答1:


I would suggest to dump mxmlc compilator's settings to xml file (where you can add all required swcs and its paths by hands using your favorite text editor).

  1. Add compilator option -dump-config=build.xml
  2. Find this xml config, modify it for your needs
  3. Replace -dump-config=build.xml with -load-config=build.xml




回答2:


Add compilator option:

-library-path=../../lib/somelibrary.swc


来源:https://stackoverflow.com/questions/9612072/how-to-use-a-relative-path-for-a-swc-library-in-flash-builder-4-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!