How to sharing classes code in different SWFs? - actionscript-3

I am working on a Flash project. In the project there are lots of isolated FLA files which may share the same common classes code. To clarify the project limitation:
I could ONLY use Flash CS6 IDE. No modern tool such as Flash Builder or Flex, just pure Flash CS6 IDE.
I have to export the FLAs to SWFs one by one separately so each one of SWFs would contains a copy of the ABC of the common classes.
I have a loader.swf which was going to load all the other SWFs into a same ApplicationDomain. In other words all the duplicated ABC in the SWFs would be ignored because the loader.swf has also already involved that.
And my questions are:
Is there any way I could pre-compile all the common classes into a SWC or SWF and I could use it just like a DLL or SO?
If so how could I create such a SWC or SWF only by Flash CS6 IDE as I told before?
If I could create such a SWC or SWF how should I use it? Such as How could I change my configuration in the Flash CS6 IDE?
To be honest I don't know my idea is valid or not. Please, any advise would be great helpful.
Thanks.

I found the solution:
Create a FLA which would touch all the common classes
Exrpot the FLA I would get two files: SWF and SWC
Use the SWC as "External Library" in other FLAs
Use the SWF as Run-time Sharing Library to dynamic load it at run-time

Related

AS3 preloader with external swc files

I have a project created from many external swc libraries that are included at compile-time.
Normally creating a preloader involves unchecking "export in frame 1" on all classes, then having them on the 2nd frame so Flash can still access them.
With the swc's however, all the classes are in separate swc file libraries. When I uncheck "export in frame 1", I can't access them from the main FLA file, and so flash just can't find them and gives errors saying those classes don't exist. How can I make them loaded properly with the preloader (instead of being loaded all at once before preloader displays), even though they are in other files?
Long story short, how can I properly make a preloader when I'm using multiple swc files at compile-time?
Thanks
You misunderstand what swcs are. Even though they are at development time external files, they are very much part of your compiled app when you publish. If you include a swc that is 50M then your app will end up being 50M bigger and your preloader will have to deal with it. No workarounds.

What is the best way to use SWF library runtime (AIR)

I am building a project in AIR that going to run third party SWF. What is the best way to instruct people creating those SWF files?
I don't understand how signing is going to work here. to avoid that I been trying to create a library project in Flash builder 4.7, how ever I do not see an option to export it as SFW file, nor I know a way to share SWC in run time.
So how do I do this?

Possible to step through/breakpoints as3 in flash buider when compiling with flash pro?

As it says in the title, I have a project that is based in a Flash Professional .Fla
However, I am doing all of the code writing and editing in Flash Builder. They are both set to have the same source path.
Although Flash Pro has the step through/ breakpoints functionality, it is not aware of breakpoints I add in from Flash Builder.
Since the project is meant to be compiled through the .fla I also can't simply compile with Flash Builder.
Does anyone have this workflow setup, and have you managed to put breakpoints in your code?
This should work. I use the same setup almost all the time. How did you create your project?
I usually create the fla, then in FB I select new->flash pro project and point it to the fla file.
Now if I add a breakpoint in FB and I test the movie with ctrl(cmd)+shift+enter, the movie is published in Flash and is stopped at the first breakpoint.

Importing and playing swf files in FlashDevelop

Does anyone have any sample code on how to take an swf, import it into FlashDevelop and play it? I'm working solely with FlashDevelop and need to know this.
What programs can you create swfs with apart from Adobe Flash CS5/6. I need a free program to create them. If that isn't possible other free workarounds would be greatly appreciated. Thanks.
Read about "Embedding asset types" here: Embedding asset types , especially "Embedding SWF files" part.
What do you mean by "create swfs"? Creating of vector animations and graphics? If yes so check this out: Synfig Studio

Access timeline of swf in library

On Google I got different opinions on this: Is it possible to access the timeline of an sfw (to use goto) in my library or do I really have to load it on runtime? If yes, how can I do it? Im using flash cs5 and ActionScript3.