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
23
votes
3 answers

What is a Flash .SWC file and how is it used?

What is a .SWC file and how is it commonly used?
dan
  • 5,664
  • 8
  • 45
  • 59
8
votes
2 answers

Working with SWCs - getDefinitionByName issue

I have a bunch of graphics assets in a fla, the MovieClips are linked to some classes. I export the fla as a swc , which I add to my library with the option "Merged into Code". All works great, I can create instances of my MovieClips , just by…
PatrickS
  • 9,539
  • 2
  • 27
  • 31
6
votes
1 answer

swc not resolving import path aliases

I have a typescript project which I'm transpiling with swc. I'm having trouble getting swc to resolve path aliases defined in either tsconfig.json or .swcrc. The module aliases are resolved properly by eslint and when running ts-node when swc is not…
minnow
  • 183
  • 8
6
votes
5 answers

Force compile-time linking of all classes in a SWC

Using Flash CS4, I am making a game that has a dozen or so sounds and a couple of music tracks. To cut down on publish/compile time, I have moved the sounds and music into an (external) SWC, which is located in a "Library Path" for the project. This…
aaaidan
  • 7,093
  • 8
  • 66
  • 102
6
votes
2 answers

Live Preview on a Flex (compc) generated SWC

Does anyone know what criterea Flash uses for discovering the Live Preview class for a Component? Background We are attempting to automate the creation of a SWC that contains a component to be used from Flash. We are able to make it visible to flash…
Richard Szalay
  • 83,269
  • 19
  • 178
  • 237
5
votes
1 answer

"next/font" requires SWC although Babel is being used due to a custom babel config being present

Im facing this error when I try to run my Nextjs project using styled components. This is my .babelrc { "plugins": [ [ "babel-plugin-styled-components", { "ssr": true, "displayName": true } ] ], …
5
votes
1 answer

The meaning of "External" linking mode in Flex Builder

There are three modes to link an SWC library to a flex application: "Merged into code", "External" and "RSL". I understand what is "RSL", but I don't understand what is "External". "RSL" works just fine for me, without any code changes. However,…
4
votes
0 answers

Module transpilation within a Next.js project with SWC

I have a project in Next.js and Typescript where I am trying to ensure code splitting and tree shaking works well for our purposes. I recently upgraded to Next.js 13.x and migrated from Babel to SWC. We have a lot of modules exposed using barrel…
zkwsk
  • 1,960
  • 4
  • 26
  • 34
4
votes
5 answers

flashdevelop halted with no explicit compile error

We are developing flash based games using flashdevelop and flash CS 3. We are using flash CS3 to publish the swc and the swc will be used in flashdevlop as library. Everything seems well, until one day I made a change to the fla(the change is…
Zhu Tao
  • 7,581
  • 9
  • 35
  • 38
4
votes
4 answers

Is there a standardised way to embed metadata (e.g. version, license) in SWC components?

Scenario: there is an Adobe Flex 3 project which uses several third-party libraries and components in the form of SWC files. How can we know "what is inside" those SWC files? Specifically, how can I make sure that the project uses the latest…
tripu
  • 304
  • 2
  • 11
4
votes
3 answers

ActionScript 3 Workflow using SWCs with linked external classes

I'm working on a very graphic-heavy application which uses content from a bunch of different FLAs. I'm a coder, though, so I want to do all my coding in Flash Builder, however I want to allow my designer to still use a few timeline actions such as…
ken.dunnington
  • 905
  • 1
  • 7
  • 20
3
votes
3 answers

What is the best way to share assets - icons/images - across multiple Flex applications?

I am in the process of creating a new - "lite" - version of a Flex application I created a while ago. I have been porting over many of the Classes and Components to a Flex Library Project that compiles an SWC file. Because both are Cairngorm…
Eric Belair
  • 10,574
  • 13
  • 75
  • 116
3
votes
1 answer

Flex / Flash: How to embed the same font in multiple SWCs

I have the following project structure: - A Flex Project (SDK 3.3) - Multiple SWCs with grafics and textfields that are used as components in the Flex project. Since I have a lot of SWCs that all use the same font in dynamic textfields, I do not…
kolt siewerts
  • 41
  • 1
  • 3
3
votes
0 answers

SWC configuration of Node 18 with typescript with esm

Okay,so I have a problem with node. SWC builds everything correctly and I can run the app - great. The problem starts when I try to use "top-level await" feature. I just can't get it to work properly! Changed "module" in package.json, added the…
MrVoland
  • 233
  • 1
  • 4
  • 19
3
votes
1 answer

How can I resolve ESM / require error using TS 4.8?

I use Node.js application and TS 4.8, and I updated package file-type, but now my project compilation fails with error [1] const _fileType = /#PURE/ _interopRequireWildcard(require("file-type")); [1] …
1
2 3
18 19