Questions tagged [compc]

Command-line compiler to compile MXML and AS files into SWF and SWC files. Part of the Apache Flex SDK (previously Adobe Flex SDK).

28 questions
4
votes
2 answers

Using compiler constants with ant task

I'm converting an existing build script from to to generate a swc. However, the build is failing, giving the error: [compc] C:\xxxx\LogViewer.mxml(32): Error: Access of undefined property VERSION. [compc] [compc] private static…
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
4
votes
1 answer

Error: unable to open AIRSDK/frameworks/libs/player/11.1/playerglobal.swc

I get the following error intermittently when compiling a swc using compc: [exec] Using AIR SDK: /Applications/Adobe Flash Builder 4.7/eclipse/plugins/com.adobe.flash.compiler_4.7.0.349722/AIRSDK [exec] Loading configuration: /Applications/Adobe…
Nabren
  • 582
  • 1
  • 7
  • 17
3
votes
2 answers

Compile a SWC using COMPC, excluding 3rd party libs

I have a code library that I have built. It relies on 2 other (third party) libraries. At the moment, when I compile the library into a swc, both third party libraries are included. I am looking for a way to compile my code library against the third…
Undistraction
  • 42,754
  • 56
  • 195
  • 331
2
votes
1 answer

How can I run ANT from a batch file without having an Environment Variable set?

I want to include ANT, the JavaSDK and FlexSDK into my project directory. I need people in my company to be able to compile from source code. I have a build.bat file which starts with : ant blah/blah/blah But what if I want to run ANT directly…
user1059939
  • 1,613
  • 2
  • 20
  • 37
2
votes
2 answers

Actionscript 3 - Script Libraries

I'm attempting to load the resulting swf of a swc build manually. Due to my particular environment, we have a need to segregate class definitions into swcs (where it makes sense) to remove redundant code from output swfs. In a nutshell, I'm defining…
Demian Brecht
  • 21,135
  • 5
  • 42
  • 46
2
votes
1 answer

Compc "error: could not find source for resource bundle" in Flex 3 when upgrading from 2.0.1

I have moved our project from SDK 2.0.1 to 3.5 because I'm using TLF. This has compiled OK in flex builder 3 IDE but I am now using command line compilation for our build system and getting errors for all the standard Flex resource bundles:…
NJA
  • 31
  • 1
  • 4
2
votes
1 answer

Compiling content of directories/wildcard to SWC using Flex compc ant tasks

Here is how I usually write the compile task:
pm_labs
  • 1,135
  • 12
  • 22
2
votes
2 answers

Is it possible to merge two SWC files into one?

I'm currently trying to do some much needed cleanup in one of our projects and as part of that I am splitting up a blob SWC into multiple smaller ones. So far so good. The problem now is that due to legacy purposes I still need a single aggregate…
2
votes
2 answers

Conditionally including Flex libraries (SWCs) in mxmlc/compc ant tasks

I have been struggling trying to figure out how to conditionally include Flex libraries in an ant build based on a property that is set on the command line. I have tried a number of approaches with the task, but so far have not gotten…
lje
  • 413
  • 5
  • 16
2
votes
1 answer

Compiling SWC file with ant fails: "include-sources doesn't support the path-element attribute"

I am trying to compile a src folder into a SWC file. But it returns the following error: build.xml:9: include-sources doesn't support the "path-element" attribute This is my build file:
Or Barmatz
  • 307
  • 3
  • 8
1
vote
0 answers

How can I generate a SWC from asset files dynamically?

Lets say you have 3 swf files in a directory: /game/assets/ 1.swf 2.swf 3.swf What I need to do, is package these up into a SWC File, and then move that SWC file to the libs/ directory. I plan to use ant, so this step must always occur before the…
user1059939
  • 1,613
  • 2
  • 20
  • 37
1
vote
1 answer

AS3 alternatives to *_exclude.xml files, loading class definitions dynamically

I've been banging my head against a wall for this for almost a couple days now and hoping that someone can point me in the right direction. Working in a very large Flash application, previously in AS2/CS3 I would have a setup like the…
deadbeef
  • 53
  • 3
1
vote
2 answers

How to create an SWC file

All I want is to take my AS3 source code files and compile them into a SWC file. Upon inspection, the SWC files I generate end up with some kind of timeline or spite in them when I use the Flash IDE or that Flex SDK utility "compc", and it's…
Triynko
  • 18,766
  • 21
  • 107
  • 173
1
vote
2 answers

Error "Could not resolve " When Trying to Compile a Flex 4 SWC with Ant

I'm trying to compile a component using ant and keep getting this error message throughout the component . . . ButtonSkin.mxml(179): Error: Could not resolve to a component implementation. ButtonSkin.mxml(210): Error: Could not…
SkunkSpinner
  • 11,429
  • 7
  • 40
  • 53
1
vote
1 answer

Why doesn't ${locale} resolve in my Ant task?

I've seen a number of examples, e.g. here, where people are including locale resource bundles by referencing the locale attribute in the element. For some reason this doesn't work for me. Here's what I have for the task:
Spanky Quigman
  • 870
  • 7
  • 16
1
2