AW: AW: [mtasc] Image Injector (now command line + embed)

Benjamin Dobler benz at bazazza.de
Tue Mar 22 12:40:57 CET 2005


Hi

I`ve made quite some changes to imageInjector.
It now works as a command line tool and supports
Embed Metadata. It will accept the same options than
mtasc. It first parses the class for embed Metadata,
than it calls mtasc with the options and finally injects
the images. It still has some constraints but for simple 
Cases it works quite well. I`ve included a small example
based on the tuto one on the mtasc site. 
Note: it`s only meant to be used with the -main option.
See my post here: http://www.richapps.de

Benz





-----Ursprüngliche Nachricht-----
Von: mtasc-bounces at lists.motion-twin.com
[mailto:mtasc-bounces at lists.motion-twin.com] Im Auftrag von Carlos Rovira
Gesendet: Dienstag, 22. März 2005 01:04
An: MotionTwin ActionScript2 Compiler List
Betreff: Re: AW: [mtasc] Image Injector

 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





More information about the mtasc mailing list