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
0
votes
1 answer

How to build a SWC with documentation

UPDATE solved: embed doc with swc solved: weird param names: param0, param1, etc. I created a swc lib using compc. Then I created the lib doc with asdoc. But I dont know how to bind them together, since when I use the .swc in another project…
Fabricio
  • 7,705
  • 9
  • 52
  • 87
0
votes
1 answer

Checking if Browser is using Cached SWC/SWF?

How do you know if the browser is actually using the cached swf RSL/library for Flex projects? I would like to be able to do different things from the preloader based on whether or not the user has never downloaded the library vs. they have it…
Lance
  • 75,200
  • 93
  • 289
  • 503
0
votes
1 answer

Actionscript Mobile Project - x=0; y=0l is Not in the Upper Left Corner. Why?

I am a pretty experienced Flash developer. I usually compile from the IDE, but this time i decided to build from Flash Builder and bring in all the assets as swc(s). Here is the code: package { import flash.display.Sprite; public…
Jim
  • 3,821
  • 1
  • 28
  • 60
0
votes
1 answer

Reducucing AIR compile time

I have an AIR app that is quiet big, and compile time is around 40-50 sec. Good thing is that app is quiet modular, I could easily break it down to modules, and compile them as swc and then recompile only those modules in which I'm working on, like…
CyberProdigy
  • 737
  • 9
  • 20
0
votes
1 answer

Why do I Get an 'Implicit Coercion of Value; error when exporting a swc from Flash Pro CS6 into Flash Builder?

I create my symbol with a class name I publish as an SWC, and in flash buildr it looks like this I import MyRect and try and use it var redRect:MyRect = new MyRect; addChild(redRect); I get an error Implicit coercion of a value of type…
LeBlaireau
  • 17,133
  • 33
  • 112
  • 192
0
votes
2 answers

Conflicted inherited definition when using SWC

I am using Flash CS6 and I am stuck by the inherited definitions. Suppose I have a class named Button such as: public class Button extends MovieClip { public var _text : TextField; } In the Library I would like to create a MovieClip symbol,…
jayatubi
  • 1,972
  • 1
  • 21
  • 51
0
votes
1 answer

using fdt to compile flex project using flex sdk as runtime shared swc

I've been trying to compile flex project using flex SDK 4.5.1. I use eclipse FDT. I want my flex application not to take a lot of space. my all page contains like 4 different swf files and each one of them contains the entire flex sdk. i'm trying to…
ufk
  • 30,912
  • 70
  • 235
  • 386
0
votes
2 answers

How to add a SimpleButton in a Flash Builder project from SWC?

I exported a SWC from Flash CS3 and the assets works, except the Buttons, they look like another library items. The code: package { // ... import flash.display.Sprite; import flash.display.SimpleButton; import res.botoes.Pause; …
Guerreiro
  • 143
  • 1
  • 11
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
2 answers

how to share a component in as3

I have a custom component(eg. MyButton) used in several swfs. I'd like to share the component in runtime, thus once our designer change the button's visual effect, we need not publish all flas that uses this button. In as2, I can put this button in…
Ryan
  • 1
  • 1
0
votes
1 answer

When using a swc with embeded files the files are missing but the swc compiles with out errors?

I am making a swc file with code that I have made in actionscript and it works correctly. However after I take all the code and put it into a swc library and it creates the swc with out any compile errors. I go to use the swc and it gives me…
Justin
  • 1,249
  • 1
  • 15
  • 37
0
votes
2 answers

Assets from SWC not included in SWF in Flash CS6

I have an asset FLA file that includes symbol assets.UI.something and there is a corresponding class assets/UI/something.as. When I'm publishing it into SWC, I can unzip it and see (in catalog.xml) that the symbol is there. I also have a main file…
xims
  • 1,570
  • 17
  • 22
0
votes
1 answer

Definition for symbol not found when embedding swc

When i embed the symbol "Tile" from swf, it works ok, when i try embedding the same symbol from swc, FlashDebugger throws this error: Error: definition for symbol 'Tile' not found [Embed(source="../lib/assets.swc", symbol="Tile",…
LuciM
  • 59
  • 2
  • 8
0
votes
1 answer

merge custom skin & custom class into SWC

If I have an *.as file that is my custom component, a SWC class that contains the custom components skins and a css file that tells the custom class how it should look (references the SWC skin file), how do I set up a library project (using…
kenneth
0
votes
1 answer

Creating a SWC image/file library at runtime using external files

I'm working on a Flash GUI project which has many images need to be dynamically loaded at runtime. Problem: Currently everytime a class initializes, it loads its assets (images) from HDD, but that usually takes too long (for example: I have a list…
mG.
  • 45
  • 1
  • 11