zinc {mdm}script and mtasc

I’ve been looking for a good SWF2EXE application for creating desktop apps so this afternoon I grabbed an eval version of Zinc V2 from Multidmedia. I also figured that with all the talk of Eclipse lately I’d try setting it up with the ASDT plugin and mtasc ActionScript2 compiler as well.

In order to use Zinc’s {mdm}script you must place a mdminit() call on the first frame of every swf in the project. I learned from the mtasc list that this isn’t possible with mtasc – it places the static main entry point function on the first frame but only after all other classes have been initialized. Apparently Zinc isn’t able to find it down there. So the way around it was to create an initial swf in the Flash IDE (should be a snap in swfmill too) that contains the mdminit() call on the first frame. I then used this swf as my input swf for mtasc.

Next small annoyance was the compiler’s nagging about “Unknown variable mdm” for any call to {mdm}script. That’s due to a scoping issue and can be hushed by qualifying the call:
_global.mdm.prompt(”hello world”);

3 Responses

  1. Michael Nino says:

    July 28, 2007 at 8:59 am


    I am using OpenLaszlo and MDM Zinc 2.5. OpenLaszlo.org is an open source UI platform similiar to Flex. I am apparently having scoping issues and thought perhaps you might offer some assistance. I would greatly appreciate since this is the final piece in our puzzle.


  2. andrew says:

    July 28, 2007 at 1:40 pm

    Geez, I have zero OpenLaszlo experience Mike…

    This post is related to the now deprecated version 1.0 of MDM script. I’m not sure the scoping issue applies in Zinc 2.5. Have you checked the MDM forums for any info?

  3. ski chalets la tania says:

    March 20, 2015 at 2:35 pm


Leave a Reply