如何使用相对路径在Flash Builder 4.6 SWC库 [英] How to use a relative path for a swc library in Flash Builder 4.6

查看:658
本文介绍了如何使用相对路径在Flash Builder 4.6 SWC库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在使用Flash Builder 4.6和我的ActionScript项目之一,我有一个引用的库名为.swc文件。

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

我说这是项目>属性> Flex库构建路径>库路径选项卡>添加SWC的方式......

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

下面弹出时,我必须通过浏览我的电脑并选择中选择一个文件名为.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

我希望能够做的是使用相对路径来代替,如:

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

有谁知道一个办法做到这一点或替代方法,以便能够使用Flash Builder?

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

谢谢!

推荐答案

我会建议转储mxmlc的compilator的设置,以XML文件(在这里可以添加所有必需的SWCS和手用你喜欢的文本编辑器,它的路径)。

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. 添加compilator选项-dump-配置=的build.xml
  2. 找到这个XML配置,修改为您的需求
  3. 替换 -dump-配置=的build.xml -load-配置=的build.xml

这篇关于如何使用相对路径在Flash Builder 4.6 SWC库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆