Close form with zinc

1k views Asked by At

I am having trouble exiting my program with zinc's mdm class libraries.

I've tried mdm.Forms.thisForm.close() and mdm.Application.exit() and neither have any effect.

Quite frustrating! There is little to no documentation, just wondering if anyone else has had similar experience with gotchas and Zinc.

DETAILS:

Using Flash Develop 4.0.2 and MDM Zinc 3.0 on Windows 7

1

There are 1 answers

1
grapefrukt On BEST ANSWER

If I remember correctly you need to initialize Zinc before some of its functions will work.

// "this" should be your root display object, but i've found any old display 
// object will work just fine. 
mdm.Application.init(this, onInit);

function onInit():void {
    trace("let's roll!");
}