Image Injector: Round 2

Ok now i`ve changed the way Image Injector works. Now it works as a command line tool. You use it just like mtasc with the same options. In your class files you can use Embed Metadata just like in Flex. For now there is one difference to Flex in Flex you would write

[Embed(source='images/matthews1.jpg')]
var image1:String;

With Image Injector you have to use

[Embed(source='images/matthews1.jpg')]
var image1:String;=”matthews1″

You can than use attach Movie like this:
_root.attachMovie(image1,”img1″,3);

I`ve included a small example. It`s the modified sample from the mtasc site.
Just run example but and see what happends.

!!! In order to use ImageInjector you will have to copy mtasc into the same directory were
you have the Image Injector.

This is still in early stages. My class parser is not perfect yet. At the moment only the class that
you entered in the command line will be searched for embeds. I will add recursive searching later.
Ahh and your class has to be in the same directory as mtasc as i`m not checking for the classpath
right now. I will add that soon.

Please check it out (at own risk) and report problems.

Thanx

Benz

Comments

7 Responses to “Image Injector: Round 2”

  1. Carlos Rovira on March 22nd, 2005 1:41 pm

    Great!

    This is a great addon to MTASC, many thanks Ben : )

  2. Daniel Aguilar on March 23rd, 2005 5:02 pm

    Yeah, this is cool.
    It looks like this alternative actinscripting thing is becoming a solid matter.
    Thanks for sharing, man ;)

  3. Daniel Aguilar on March 29th, 2005 5:05 pm

    Hi there,

    just one question: is there a ‘verbose’ mode, so I can see MTASC output?

    thanks

  4. 采葛 » Flash Open Source開發工具收集 on April 19th, 2005 4:32 am

    [...] e. Flashout is great addition if you use eclipse Actionscript 2 plugin and MTASC compiler. Image Injector, that injects images into a swf file for MTASC swfmill is a tool to process Shockwave [...]

  5. Yet Another Blog from Luar » Flash open source tools collection on January 7th, 2006 7:33 pm

    [...] e. Flashout is great addition if you use eclipse Actionscript 2 plugin and MTASC compiler. Image Injector, that injects images into a swf file for MTASC swfmill is a tool to process Shockwave Flash(TM) (SWF) [...]

  6. 工控网 on April 21st, 2007 10:00 am

    Great!

    This is a great addon to MTASC, many thanks Ben : )

  7. Yusuf Motiwala on October 13th, 2007 5:39 am

    Looks like a great companion to mtasc. Any update?

Leave a Reply