Command-line compiler to compile MXML and AS files into SWF and SWC files. Part of the Apache Flex SDK (previously Adobe Flex SDK).
Questions tagged [compc]
28 questions
1
vote
4 answers
Compc "could not find a JVM"
When I try to use compc to build a .swc, I get Error: could not find a JVM.
I found this site, and then commented out the java.home line. That didn't help.
I'm trying to build a .swc out of this library, so I can actually use it. I also have…
user773737
1
vote
1 answer
Compiling a Flex Library with a source attachment using compc or FlashBuilder
I am trying to compile a Library SWC using FlashBuilder while retaining the references to the source code so that asdocs will still appear and the debugger will show source code when there is a problem. The results I want are similar to what you get…

Mims H. Wright
- 3,049
- 1
- 25
- 30
1
vote
1 answer
Why are some of my assets 0-byte in size when I build a component using compc?
I'm building a flex .swc library using Ant, and many of the assets that are supposed to be in the file are not being copied, instead creating 0-byte entries in the .swc.
Here is the ant compc target that is doing the creation. I've tried both…

Chris R
- 17,546
- 23
- 105
- 172
1
vote
2 answers
How to compile SWC in FDT without including the SDK libraries?
It seems the command -el forces external linkages but then it won't compile because options from playerglobal.swc cannot be found. I just want to build a swc from the source folder and not include any external assets.
My second question is about…

bond
- 1,054
- 8
- 15
0
votes
0 answers
SWC compilation much slower than SWF
We're converting quite a large Flex project from a monolithic web application project type to multiple projects where most of the existing files (~2000) will newly live under a Library project and there will be multiple runnable projects beside it…

Borek Bernard
- 50,745
- 59
- 165
- 240
0
votes
2 answers
Referring to external source in Flex compiler
Is there a external-source-path option available in Flex compiler similar to external-library-path ?
My requirement is that, I am building a "SWC" file but I don't want to include certain folders inside my 'src' folder as these are anyway available…

Ravi
- 35
- 1
- 8
0
votes
1 answer
Compc (Actionscript Library Compiler) Doesn't Fail Unless I Delete the File First?
Here's the scenario: I run compc on a source directory to recompile an already existing library after some changes, which completes successfully. Then I remove the library (the .swc file) and re-compile, which causes many errors to be…

llimllib
- 3,642
- 1
- 29
- 29
0
votes
1 answer
ActionScript how to compile .as to binary machine readable format
I am looking for an option for converting my .as ActionScript3 files to binary format before distribution. I tried mxmlc and compc but both are converting source to bytecode which is reversible. Is there any way to hide your source code…

BB23850
- 109
- 1
- 11
0
votes
1 answer
How to ensure classes references in a defaults.css stylesheet are compiled into a swc
I am using compc in an ant to task to compile a theme swc. This theme swc depends on some asset swcs and in the defaults.css style sheet I refer to some of the classes in these asset swcs.
The linkage I use for the asset swcs is…

Roaders
- 4,373
- 8
- 50
- 71
0
votes
1 answer
Flex Compilation - Strange Behavior of metadata tags
I'm trying to move the build of a Flex Builder workspace from the IDE into an Ant task, and I'm having some trouble with the behavior of some custom metadata tags in the projects.
I have one library project which is compiled as a .swc, which…

Dan Monego
- 9,637
- 6
- 37
- 72
0
votes
2 answers
How to compile a SWC file with mulitple namespaces
I'm trying to compile an SWC file from a list of given ActionScript classes. I'm using the compc compiler. The problem is that there are so many classes grouped into multiple namespaces that I am finding it very tedious to specify each individual…

Draco
- 16,156
- 23
- 77
- 92
0
votes
1 answer
Not adding any classes in compc SWC
I'm trying to compile a AIR library project to SWC using compc and it's not including any of my libraries files. Here is my ANT task:

1.21 gigawatts
- 16,517
- 32
- 123
- 231
0
votes
1 answer
How do I use compc to build a swc that dynamically links in Flex components?
In Flash Builder 4.6, when managing a Flex project, under the Build Path options for a Flex Library Project, I can select between "external" and "Merged into code" Framework linkage, with "external" being the default.
How can I use external linkage…

Steven
- 17,796
- 13
- 66
- 118