Questions tagged [swc]

An Adobe SWC file is a package of precompiled Flash symbols and ActionScript code that allows a Flash or Flex developer to distribute classes and assets, or to avoid recompiling symbols and code that will not change. Please, do not use this tag for questions related to the SWC JavaScript compiler (use [swc-compiler] instead).

An Adobe file is a package of precompiled Flash symbols and code that allows a Flash or Flex developer to distribute classes and assets, or to avoid recompiling symbols and code that will not change.

SWC files can be generated by , by or by directly using the command-line utility (part of SDK). They are sometimes referred to as a class libraries and cannot be directly executed by the Flash Player.

276 questions
2
votes
1 answer

How do I include a SWC in an AS2 Flash project?

In AS3, I know how to accomplish this. One needs only to click "ActionScript Settings", and navigate to the SWC file under "SWC Files or Folders Containing SWC Files". However, when the project is set to AS2, the "Actionscript 2.0 Settings" is a…
Whit
  • 1,149
  • 1
  • 12
  • 28
2
votes
2 answers

Is it possible to sign a SWC file?

Much like a Java JAR can be signed, can a SWC be cryptographically signed, and that signature find its way into in the finished SWF? I asked because I need to supply a SWC file along with its Flex sources to a 3rd party. To guard against changes to…
Martin Cowie
  • 2,788
  • 7
  • 38
  • 74
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
1 answer

AS3 Code Structure - Using Base Code

I would like some advice on something. I have many games which all use the same base code, and they extend the base classes overriding anywhere they need their own custom functionality. This is fine, but it has reached a point where it has become…
Heather Roberts
  • 1,978
  • 1
  • 24
  • 33
2
votes
1 answer

Warning: The definition depended on by in the SWC could not be found

Help. I compiled with flashdevelop a "swc" of the SVGRenderer for as3 (https://github.com/LucasLorentz/AS3SVGRenderer) When I compile the SWC project, I don't have any issues. But when I import them in my AS3 AIR project, FlashDevelops outputs the…
Ciberman
  • 580
  • 7
  • 23
2
votes
1 answer

combine mutiple movie clip functions into a single swc file or MXP file For Flash Action Script 3.0?

I have to build one MXP package for Flash (not Flex). But i have multiple components, somthing like HelpSymbolMovieClips(have its on class), one image holder. etc. I need to combine there swc file into a single MXP file. Is it possible? or How can…
coderex
  • 27,225
  • 45
  • 116
  • 170
2
votes
1 answer

Building a SWC from IntelliJ Idea without resorting to ant?

First, here's what I want to do: * Compile my library code into a SWC * Do not staticly link the Flex framework At first, I tried just setting up a Flex module, clicking the "library" and "use framework as an RSL" buttons. This however doesn't…
Sophistifunk
  • 4,742
  • 4
  • 28
  • 37
2
votes
1 answer

Generating ASDoc for a Project that uses SWCs

I'm using FlashDevelop and it's ActionScript Documentation Generator. I have a project that uses several SWC files that are added to the .as3proj library. Some of the classes in my project extend classes that are in the SWC files. Which causes…
jshbrntt
  • 5,134
  • 6
  • 31
  • 60
2
votes
1 answer

How to sharing classes code in different SWFs?

I am working on a Flash project. In the project there are lots of isolated FLA files which may share the same common classes code. To clarify the project limitation: I could ONLY use Flash CS6 IDE. No modern tool such as Flash Builder or Flex, just…
jayatubi
  • 1,972
  • 1
  • 21
  • 51
2
votes
2 answers

How do you create a swc for a native extension?

I am trying to implement in-app billing with an Android app I am creating in Flash Builder, so I downloaded a native extension to handle this (https://github.com/pozirk/AndroidInAppPurchase). It comes with the .ane file, but when I add this the…
max
  • 33
  • 5
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
2
votes
3 answers

FlasCC SWC within Mobile AIR Project

I am writing a barcode scanner for iOS and Android using Flex Mobile and ZXing. I have optimized ZXing as much as I can, but it is still too slow to use for continual scanning on some older devices. I extracted some of the heavy work into a C SWIG…
Colin
  • 53
  • 6
2
votes
2 answers

Flex error, unable to load SWC

Need help in a very weird error in Flashbuilder where a SWC seems to magically appear and is giving me errors. All the updates to the SWC is not being recognised by Flashbuilder. In my Libs folder, there is no ._controls.swc file in it but in the…
kristalize
  • 75
  • 1
  • 8
2
votes
2 answers

Figuring out the package name of a *.SWC file so that I can import it

I am a noob to flex so this probably comes across as a ridiculous error to you guys, but I can't for the life of me figure out what would be the name of the package/class for the .swc file I just added. I am doing the typical steps, going into…
user1020069
  • 1,540
  • 7
  • 24
  • 41
2
votes
1 answer

Compile-time shared library symbols in Flash

Our Flash project has the following structure. Two FLA files with graphical assets (symbols), imported into a pure AS3 code project using SWCs. There are some symbols that are used in both ui.fla and login.fla, so we'd like to put them in a shared…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301