Forums: Flash:

 

MXML compiler and SWC component files

first
 

es! MXML compiler and SWC component files

Howdy, all

I use the MXMLC command-line compiler to create all of my personal stuff, and an increasing amount of my work stuff. I have directories set up - usually C:/LIBRARY - where I throw all of my custom/re-usable classes. It all works fine with the modifications to classpath and library-include-path, etc.

Now: What is the best way to go about connecting to .SWC component files using the MXMLC compiler? I know it can be done...I have managed to do it once or twice, although it seemed like different methods were necessary for e.g. the Google Maps .swc vs. the Facebook .swc. What I want to know is, is it possible to modify the library-include-path (or something) in the MXMLC compiler config files so I can have all of my .SWCs in a centralized location, accessible from all my projects without having to duplicate the .SWCs into the different projects directory?

One caveat: any solution would need to work for pure AS3 - not Flex - projects. Preferably, the solution would be editor-agnostic, too, e.g. not specific to Eclipse. Google has not been my friend in this one. Perhaps I am asking the wrong questions.

Thanks, all!

-eS?

-------------------------------------------
blog ::: photos
quote
 

mystic_juju

I use flashdevelop which sets that kind of thing up nicely for me. You just copy the swc to your working folder and right click on it to "Add to library". However, if you want an editor agnostic answer then you can use the compiler flag

-load-config [filename]

to load in an external xml config file (all of which can also go on the command line, but it's nice to keep it in an xml file)

The xml file contains this kind of thing:


<?xml version="1.0" encoding="utf-8"?>
<flex-config>
<compiler>
<source-path append="true">
<path-element>/path/to/your/source/files</path-element>
</source-path>
<library-path append="true">
<path-element>/path/to/a/swc/file/</path-element>
</library-path>
</compiler>
<file-specs>
<path-element>/path/to/your/main/as/file/</path-element>
</file-specs>
<default-background-color>#FFFFFF</default-background-color>
<default-frame-rate>30</default-frame-rate>
<default-size>
<width>1024</width>
<height>768</height>
</default-size>
</flex-config>


Try that out.
But all those items can be placed on the command line and senocular has a nice list over here: HOT XXX MXMLC PORN

A tale that begins with a beet will end with the devil
quote
 

es!

Well, I did a little soul searching, and decided to drink the FlashDevelop kool-aid.

AND IT WAS GOOD

Thanks for the help, mystic_juju!

-------------------------------------------
blog ::: photos
quote
 

mystic_juju

Great to hear smile
FD is a happy-making thing.

A tale that begins with a beet will end with the devil
quote
 
first
 

Forums: Flash: MXML compiler and SWC component files

 
New Post
 
You must be logged in to post