So, I'm not familiar with Flash ANT (though I like the idea of it),
but I would kind of guess it uses MTASC.  I've had trouble finding
things that work with the IDE itself, though I do have a bit of a hack
that tends to work for me.

You can do a little bit of scripting of the Flash IDE using JSFL
files.  I have a script like the following in a JSFL file that I use
to build from the command line:

--------------------------------------------------
pres = "file:///Pres.fla";

if(!fl.getDocumentDOM()) {
   fl.openDocument(pres);
   curr_doc = fl.getDocumentDOM();
   curr_doc.publish();
   curr_doc.close(false);
   fl.quit(true);
} else {
   fl.openDocument(pres);
   curr_doc = fl.getDocumentDOM();
   curr_doc.publish();
}
--------------------------------------------------

Then I have a BAT file with this:

--------------------------------------------------
@echo off
"C:\Program Files\Macromedia\Flash 8\Flash.exe" pubPres.jsfl
--------------------------------------------------

Running that BAT file builds the SWF, though I haven't found a way to
capture the output generated by flash (so to tell if there were errors
I have to look at the flash IDE).

The other problem is that if the Flash IDE is already open the JSFL
file doesn't block.  It kicks off the build in Flash and then exits,
so just because the BAT file finished running doesn't mean the build
is done.

I know it's not really what you're looking for, but I figured it might
be useful (to you or maybe someone else).

 -Andy


On 2/5/07, ChrisRM <[EMAIL PROTECTED]> wrote:
Hi all,

I'm working on a project that requires nightly builds and automating that
process would be fantastic. I've come across Flash ANT and it seems like
it is the solution. Could anyone who has used this tool share some advice
on it? Particularly with setting it up as looking at the documentation it
seems be pretty skimpy and assuming you already know what you're doing.

Questions like, do you need to install Apache ANT?

How are HTML files that are updated handled for copying to an output
directory?

What needs to be edited in the build.xml file to get things working?

${root.dir}, ${basedir}, and ${output.dir} where are these set?

Is there a way to have Flash ANT compile a build at a specified time every
night?

I'll be using this with the Flash MX 2004 compiler (not MTASC or others).

Thanks.
Chris
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to