Hot to make SWC file?


(fedyfausto) #1

i have some code of plugin but how can i compile it and create the swc file? thx a lot


(Ultima2876) #2

There is a FlashDevelop plugin but it doesn’t seem very reliable. Personally I use Adobe Flash Builder to build my SWC libraries.


(fedyfausto) #3

ok i’m using this but i have this errors :8ball:

D:\Progetti\Flash\Square Engine Plus\src\engine\SQ.as(497): col: 37 Avvertimento: Il nome della definizione corrisponde al nome di un pacchetto importato. I riferimenti non qualificati a quel nome verranno risolti al pacchetto e non alla definizione.

	/** @private */ public static var engine:SQEngine;
	                                  ^

Avvertimento: ‘C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\frameworks\libs\framework.swc’ ha impostazioni predefinite per gli stili e si trova in library-path, il che significa che le dipendenze verranno collegate senza gli stili. Di conseguenza, nelle applicazioni che usano il file SWC di output potrebbero mancare degli skin. Il file SWC deve essere in external-library-path.


(Ultima2876) #4

Translated for reference.

The problem seems to be that you already have a package name called ‘engine’ in your project (for example, maybe net.fedyfausto.engine or something). Try renaming that ‘engine’ var to ‘_engine’ or ‘_sqEngine’ or whatever.


(fedyfausto) #5

yeah i fixed it but i have this problem:

Warning: ‘C:\Program Files (x86)\FlashDevelop\Tools\flexsdk\frameworks\libs\framework.swc’ has default settings for popular font styles and is in the library-path, which means dependencies will be linked without the styles. As a result, applications that use the SWC file output may be missing skins. The SWC file must be in the external-library-path.


(Ultima2876) #6

Check out this topic at the FlashDevelop forums, it seems relevant: http://www.flashdevelop.org/community/viewtopic.php?p=26487


(fedyfausto) #7

nope :frowning: i have tried but isn’t my problem


(fedyfausto) #8

wait i fix it :smiley: but now i have some errors like this:

col: 1 Error: Unable to find the definition of the base class Object.

but the dol:1 is the “package” name like this:

package engine.Effects (the first line of every class)


(fedyfausto) #9

i used Flash builder 4.6 and i did it :frowning:


(Ultima2876) #10

Ah, so do you have it all sorted now?


(Zachary Lewis) #11

We really need a set of command-line tools to perform tasks like building the .swc and generating documentation so developers can pull down the repo and groove. This would also speed up release generation (always a plus).