Hi all,
I'm developing a utility called AS Class Exporter and thought that I'd share it
in case someone is interested in taking a look. It's a C# / .NET app
(initially I tried to develop it in Python, but run into some problems, so I
chose to do it .NET).
It intends to solve a frequent problem that I've run into in many Flash
projects. Often, I'd place the classes and packages for a project inside a
"fla" or "src" a folder, so the code is accessible to the fla files, which live
in that same folder, without any extra classpath configuration. I'd also use
"common" code from a central repository, as well (the kind of code that is
generic enough that can be shared among many projects).
The problem is, when you have to give the sources of the project to someone, in
order for them to be able to compile the fla's, you'd either have to give them
your whole central repository (most of which is not relevant or needed to the
project at hand), or manually track down which classes are being referenced in
your project's code. Then you'd have to create folders that follow the original
package/folder layout and manually copy and paste your .as files. A couple of
times I had to do that and it was rather painful, time consuming and error
prone. So, I started developing this project based on my own needs as a way to
automatize all that tedious work.
I've hosted the project in google code
(http://code.google.com/p/as2-class-exporter/), so it's available there if
anyone who has come across the same problem wants to take a look / give it a
try. It's open source -- MIT licensed. Basically, it's free (as in free beer
and in freedom of speech), so you can do whatever you want with it. I've
created a page for the project in osflash.org as well
(http://osflash.org/projects/asclassexporter).
There's still not much documentation, just the source code and 2 compiled
versions for AVM1 & AVM2 swfs (exported for player versions 8 or previous, or
9, respectively), in case you are not interested in the sources and just want
to use it "out of the box".
It's windows only so far (sorry, I'm a Windows dork, and have no experience
with Mac, Linux or any other OS). It requires the .NET framework 1.1 and Flash
Player 8 installed. To pop-up the xml status log after the export is done, it
also assumes that Internet Explorer (iexplore) is in your path, which, to my
knowledge, is a very fair assumption if you are running Windows.
I'd appreciate very much any suggestions, comments, ideas, or critics.
Cheers
Juan Pablo Califano
_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org