问题
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).
- Add compilator option -dump-config=build.xml
- Find this xml config, modify it for your needs
- 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