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

Flash export Movie to SWC, load and play it in Flex ActionScript Project

I can not run AS included into SWC library. I made two test-projects - one in Flash Pro - just as it was described in the answer here: the link with addition of some AS3 code that animate the blue circle. Second project - Flex ActionScript Mobile…
0
votes
2 answers

how to use .swc file in flex project

I have a flex project in which I need to as3xls library (.swc file) in my project. Now I have downloaded that swc file and included it in flex-sdk\frameworks\libs and I am able to use the .as files of that swc file. Now If I have tried to put the…
Nirmal
  • 4,789
  • 13
  • 72
  • 114
0
votes
1 answer

Flash Builder (Flex) Air Project mx.* libraries swc Class mx.logging.targets::LineFormattedTarget could not be found

A teammate on my project added a swc that had some mx logging classes in it, and now my project won't compile. Error: Class mx.logging.targets::LineFormattedTarget could not be found. I'm on the latest Flash Builder 4.6, fresh install. I notice…
botbot
  • 7,299
  • 14
  • 58
  • 96
0
votes
1 answer

flash alchemy: passing array of floats

Doesn't work: var b:ByteArray = new ByteArray(); b.writeFloat(-50.000000); b.position = 0; cpp.processFloat(b,b.bytesAvailable); CPP: static AS3_Val processFloat(void* self, AS3_Val…
0
votes
1 answer

using two swc files (movie clip inside have the same instance name);

I have two SWC files first.swc and second.swc the problem : movieclips inside this two SWC files have the same instance names ( the difference is the graphics applied for them). How can i call a movieclip from the first or the second SWC files if…
0
votes
1 answer

flexmojos ignoring configuration?

I am trying to build out a SWC file from a Flex library, and no matter what I do, flexmojos (3.6.1) seems to build a "config.xml" file in the bin/classes folder that is empty, and uses that for configuration, completely ignoring everything I put…
TPiddy042
  • 51
  • 1
  • 5
0
votes
2 answers

How do I load dynamic image assets into adobe air

The app I'm working on displays four random images at one point. These four images come from a set of fifty images. If this was a standard Flex project I would just set the img.source property: this.img1.source…
cside23
  • 23
  • 1
  • 5
0
votes
1 answer

Can a class check if it exists in an SWF or in an FLA?

I have an AS2 component which I need to behave differently in an SWF from an FLA. Can it determine its state programmatically? Part of the problem here may be too that when I compile it as an SWC it probably doesn't think it's in an FLA…
josh
  • 339
  • 1
  • 2
  • 6
0
votes
1 answer

Compiling swc with sources or only with asdoc

How to compile swc-library with documentation (asdoc) and sources in Flash Builder 4.6? If I compile Flex-application I can set check compile with sources, but for the library project I don't have this option. Are there some option for flex…
lexus.pp
  • 159
  • 7
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
0
votes
1 answer

Flex - Missing constructor arguments in an included swc lib

I've written a swc lib using flash pro cs6. Among others the swc contains "LPChat" class: package { import com.adobe.serialization.json.JSON; import flash.display.Sprite; import flash.net.URLRequestHeader; import flash.utils.setInterval; public…
Shlomi Schwartz
  • 8,693
  • 29
  • 109
  • 186
0
votes
1 answer

Linking Project To Robotlegs Files In FDT

I am trying HelloFlash in FDT - from the demo bundle. I have robotlegs v1.5.2 as a linked resource from: D:\as3-robotlegs\robotlegs-framework-v1.5.2\src The robotlegs files are not seeing each other, even though they have the correct package…
Alan Klement
  • 1,218
  • 7
  • 18
0
votes
1 answer

Set parameter for movieclips to determine the frequency they'll show up on stage on Flash Builder

I'm making a video game-like project with Flash Builder (Flex if you wish). I have an array of movieclips (which are SWCs that I've called from Flash). These movieclips are separate actions of the character in the game, which are going to be "liked"…
0
votes
1 answer

how to distribute a Flash component for use with MTASC?

I have a Flash component that's just a library of compiled code with some exposed API calls. Normally we distribute this as a SWC or MXP, and it works just fine. Recently I had a client express interest in using my component, but they do all their…
nerdabilly
  • 1,248
  • 4
  • 15
  • 34
0
votes
0 answers

currentFrame of swc returns 1

I .swc files that are animations. I am trying to get if the animation is nearing the end so I am comparing mc.currentFrame vs mc.totalFrames. The problem is that, on .swcs currentFrame and totalFrames always return 1. Is there a way I can get…
1 2 3
18
19