swc

Incompatible classes when loading SWF

I have two ActionScript 3 projects, game(.swf) and minigame(.swf). At runtime the main game loads the minigame via Loader. I also have a shared library (SWC) of event classes, included by both, which minigame will need to dispatch and game will need to listen to. First: Is this possible this way? Second: What will happen if I compile t...

unable to load SWC YahooMap.swc

I downloaded the swc file from here: http://developer.yahoo.com/maps/flash/flexGettingStarted.html And put it in my flex 3.0 lib folder - just like where all my other 3rd party libraries are in place, however with the yahoo flex map lib, i get that error. Any ideas? Appreciate your help, thanks. ...

Moving SWC to libs folder breaks project

I have a swc(degrafa) that I have been referencing externally in another folder on my computer. When I tried to move the swc to the libs folder I was no longer able to access the swc from my application. Is there a step im missing? ...

Flash CS3 ActionScript3 importing and using SWC

Hello, I am trying to create a SWC library for use in my Flash AIR project. I have created a seperate FLA called SceneLibrary and followed the steps defined here: http://www.luaye.com/blog/index.php?action=read&id=54 to create a new SWC component. I saved the created SWC into a lib folder within my Flash Dev project, I then right ...

Flex/Actionscript: Unable to add archive file

I have an Flex 4 application that I am developing in Flash Builder 4. I'm trying to use a library developed by a coworker, which was delivered as an SWC. I added the library to the Library Path in the project properties. Component set: MX + Spark, Framework linkage: Merged into code. When I attempt to instantiate a component from th...

How to properly use .SWC packages in Flash CS 4

Hi! I've googled a lot trying to find how to properly import and use .swc files in Flash CS 4, tried lots of different methods but none seem to work. What I've done is: 1. Placed it in my "D:\Program Files (x86)\Adobe\Adobe Flash CS4\en\Configuration\Components" folder. It does however not show up in the component inspector. 2. Added i...

How do you set a "Document class" from an SWC in Flash CS4?

I have an SWC with a class called Content. I want to set it as the "Document Class" in Flash. However, after setting up the SWC in the .fla, I am receiving an error message saying that "A definition for the document class could not be found in the classpath,..." Setting up the direct class folder works fine, but I need to distribute this...

Linking AS code to symbols defined in an external SWC?

(apologies ahead of time, I only really know Flash; my Flex experience is basically nil. There may be a very standard and obvious workflow solution that Flex people know about) I have a number of UI elements that are graphically quite complex (they're not components, they're just Sprites). Since it takes a long time to compile them, I'v...

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 works, but with a caveat... Until before I externalised the assets, I had been dynamical...

Flex Modules vs RSL

Hi, I'm a little bit confused about when is better to use Flex Modules or RSL libriaries (in Flex 3.5). My goal is split my project in several unit projects, so I can test and work separately. Let's assume I have a Customer app and Vendor app. I also have a front-end panel with two buttons. Each button launches Customer app or Vendor a...

use a style.css file from a .swc and build the Flex project with ANT

I have an .SWC library with a style.css file inside. The .SWC file is added to my project and the style.css is used this way: <fx:Style source="assets/style/style.css" /> If I want to build my project with an ANT-script it says that "the external stylesheet couldn't be found". In ANT you need to write the path for assets with an leadi...

not able to export swc in flash cs4 professional

Hi All, I am having problems generating swc file for fla in flash cs4. I have modified the publish settings and checked the "Export to SWC" option. On publish it is only giving me an updated SWF and no SWC. Has anyone come across this problem ? /Kiran ...

AS3 Embedded font in linked SWC/source blanks out when setting dynamic text field

Okay, that's a fairly complicated title up there, so I'll explain the setup that's causing this error first. I've got a number of related projects set up in Flash Builder. Each project gets its graphical assets from an exported SWC file (or multiple SWC files.) This works fine, but I wanted to create a shared project that contains stuff...

Conflicts between SWC skin and Spark drawing API

I have a project where we are trying to skin Spark components from a third party library that are built up from the drawing API primitives. Our first attempt involved creating a Flex skin (SWC) in Illustrator/Flash and applying that skin to the Spark components via CSS. We found that even with only a single instance of one of the comp...

Flex crazy issue

Hi guys I am trying to export the button symbol from Flash and publish swc file for Flex. I have successfully export 3 buttons which are playBtn, stopBtn, pauseBtn from flash and add swc file to my flex actionscript files. my code is: private var stopBt:stopBtn; private var playBt:playBtn; private var pauseBt:pauseBtn; privat...

Flex AIR: how to include .swc in library?

I'm trying to make my Flex project into a AIR application. It all works fine until I try to access classes from my .swc. Then I get this error: Error #1014: Class IIMEClient could not be found. I googled the error and found out that it meant that you haven't got the right air version in the air-app.xml. This is not the case here I think...

Class in loaded SWF cannot use base class in loading SWF

I have two SWF files which I shall call container and slave. The slave file contains a movieclip that extends from a class I shall call base. base extends MovieClip and is compiled into an SWC. slave includes this SWC as a runtime library, while container includes it as merged (and does reference it so it should be compiled into the cont...

The meaning of "External" linking mode in Flex Builder

Hello, 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, External doesn't work for me. Although my application starts, the classes in the ...

Flex 4 Air 2 RSL (Runtime Shared Libraries)

Hi, Has anyone got any experience will loading SWC / SWZ's at runtime within a Flex 4 / Air 2 desktop application? The very rough idea would be to have a desktop Air app, which is able to "download" additional modules (eg, a SWZ/RSL representing a form) and load these at runtime? Imagine the App is configured using an XML file obtaine...

Creating a .swc - why don't interfaces work, when classes do?

I'm making a game which loads map .swfs at runtime. The maps will contain graphics and code, which can both vary from map to map. I've decided to make all the maps implement an interface, so they can all be used in the same way by the game. I'm using a .swc to contain the interface, like in this page. I can get classes to work in the .s...