AW: [mtasc] Image Injector

Dan Shryock dan.shryock at gmail.com
Tue Mar 22 17:34:52 CET 2005


What about integrating the image linker and mtasc as an swfc task in
ant.  This would provide easy integration for many IDEs (jEdit and
Eclipse for example), and would let you use an xml syntax for the
images to be linked (Thus removing any changes to the code which
aren't actionscript related).  It would also solve many peoples
problems of not wanting to manually generate lists of all of the as
files to include because of ant's fileset commands.  Of course these
are just my thoughts ;)

Dan


On Tue, 22 Mar 2005 00:04:12 GMT, Carlos Rovira <carlos.rovira at lycos.es> wrote:
>  Hi Ben & Darron,
> 
> First Thanks to Ben for his tool, It's a solution and a great begining.
> 
> In order to improve it I think (as I say in other mails) that I prefer the Flex @embed style
> because I consider a better practice, although Darron's proposal is good too as we get a better and flexible compiler.
> 
> With the @embed tag, you could (as you would do in Flex) introduce the images inside the class, and you don't need to include every image in the command line, I think this translates into a seamless and easy development, and don't rely in the compiler's command line.
> 
> As always only an opinion... what do you think about it?
> 
> Thanks again for the injector, Ben :)
> 
> C.
> 
> ----------------------------- Carlos Rovira -- www.carlosrovira.com ------------------------------
> 
> > De:: "Benjamin Dobler" <benz at bazazza.de>
> > Para: "'MotionTwin ActionScript2 Compiler List'" <mtasc at lists.motion-twin.com>
> > Asunto:: AW: [mtasc] Image Injector
> > BCC: Mon, 21 Mar 2005 22:58:03 +0100
> 
> > <pre>Yes it was the wrong dll ;-) updated.
> > Sure the gui is not the best thing. I thought of doing
> > It with an xml were you can specify all your images plus linkage id.
> > Or maybe like Flex with the @embed statement. It would than parse
> > the class, lookup all @embeds and than call mtasc. In this way it would
> > be one process.
> >
> > Benz
> >
> > -----Ursprüngliche Nachricht-----
> > Von: mtasc-bounces at lists.motion-twin.com
> > [mailto:mtasc-bounces at lists.motion-twin.com] Im Auftrag von Darron J. Schall
> > Gesendet: Montag, 21. März 2005 22:46
> > An: MotionTwin ActionScript2 Compiler List
> > Betreff: Re: [mtasc] Image Injector
> >
> > Benjamin Dobler wrote:
> >
> > >Here is my first attempt on doing an Image Injector.
> > >You can download it here: <a href=http://www.richapps.de/?p=4>http://www.richapps.de/?p=4</a>>
> > >It allows you to add an image to an existing swf and give it
> > >A linkage name to use it with attach movie.
> > >This is not even alpha but I hope to get some suggestions.
> > >
> > >
> > Good start.  I wasn't able to get the jar to run just by double clicking
> > on it.. here's what I had to do:
> >
> > * Extract .jar to C:\Program Files\SWFImageInjector
> > * Copy swt-win32-3062.dll from one of my Java projects to C:\Program
> > Files\SWFImageInjector  -- you included the wrong .dll by mistake.
> > Since this is your first SWT app, we'll fogive you!  ;-)
> > * Launch by opening a command window to C:\Program
> > Files\SWFImageInjector and typing the following:
> >
> >     java -cp swf.jar;transform.jar;transform-util.jar;.
> > -Djava.library.path=./ com.benz.swftools.Start
> >
> > That opened up the application.
> >
> > If I click image, but then click cancel in the file dialog, the program
> > crashes with a Argument cannot be null IllegalArgumentException.  The
> > same thing happens if I cancel the .swf browse dialog
> >
> > It looks like it has promise...  but I'd still like to see this be
> > included in MTASC with a -image switch for path ; id ; frame#
> >
> > Really, the gui is nice, but if I need to inject 100 images, I would
> > hate to have to do that by hand.  Injecting the images into the .swf
> > should be an automated process.
> >
> > -d
> >
> >
> >
> > --
> > MTASC : no more coffee break while compiling
> >
> > --
> > MTASC : no more coffee break while compiling
> >
> > </pre>
> 
> Lycos amplía tu espacio a 300Mb, consíguelo ahora gratis.  http://mail.lycos.es
> 
> 
> --
> MTASC : no more coffee break while compiling
> 
>



More information about the mtasc mailing list