How do I add the SWC file for Cairngorm to my app without FlexBuilder?

瘦欲@ 提交于 2019-12-12 19:30:47

问题


I am not using FlexBuilder, I'm using the free Flex SDK with TextMate. I'm having some trouble figuring out what this FlexBuilder process actually does behind all the nice dialogs and things, so that I can do the same thing by tweaking whatever the relevant file is, but Googling just points me at similar instructions telling me to use FlexBuilder.

Anyone able to point me in the right direction?


回答1:


mxmlc considers a swc a library (it's actually a zip file that you can examine) so you'll want to do something like the following:

mxmlc -compiler.library-path /path/to/your/swc

You can get help with mxmlc -help <TERM>. For example:

$ mxmlc -help library-path
Adobe Flex Compiler (mxmlc)
Version 3.3.0 build 4852
Copyright (c) 2004-2007 Adobe Systems, Inc. All rights reserved.

-compiler.external-library-path [path-element] [...]
    alias -external-library-path
    list of SWC files or directories to compile against but to omit from
    linking (repeatable)
-compiler.library-path [path-element] [...]
    alias -l
    list of SWC files or directories that contain SWC files (repeatable)
-runtime-shared-library-path [path-element] [rsl-url] [policy-file-url] [rsl-url] [policy-file-url]
    alias -rslp
     (repeatable)


来源:https://stackoverflow.com/questions/3464659/how-do-i-add-the-swc-file-for-cairngorm-to-my-app-without-flexbuilder

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