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 Avatar

    Great!

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

  2. Daniel Aguilar Avatar

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

  3. Daniel Aguilar Avatar

    Hi there,

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

    thanks

  4. […] 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. […] 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. ??? Avatar

    Great!

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

  7. Yusuf Motiwala Avatar

    Looks like a great companion to mtasc. Any update?

Leave a Reply

Your email address will not be published. Required fields are marked *