Building Standalone Applications With FDT & Zinc 4.0
From FDT Documentation
Zinc Builder is a powerful tool for using your existing AS3 and MXML skills to create desktop (and kiosk) applications for platforms such as OSX and Windows.
This tutorial will give a short introduction to using Zinc builder and FDT.
Contents |
Video
Getting Started
Download & Install Zinc Builder
Get started by downloading Zinc builder and then installing it (all you have to do is expand the zip file).
![Multidmedia.com - Zinc 4.0 - The Ultimate SWF2EXE for Flash & Flex 2.png](/w/images/thumb/f/ff/Multidmedia.com_-_Zinc_4.0_-_The_Ultimate_SWF2EXE_for_Flash_%26_Flex_2.png/600px-Multidmedia.com_-_Zinc_4.0_-_The_Ultimate_SWF2EXE_for_Flash_%26_Flex_2.png)
![Zinc 002.png](/w/images/thumb/6/60/Zinc_002.png/600px-Zinc_002.png)
![Zinc 004.png](/w/images/c/cc/Zinc_004.png)
Download & Install The FDT Zinc Template
While this step is optional, many will find it helpful when doing Zinc development.
After downloading the template (above) place it in your FDT home folder.
![Zinc 003.png](/w/images/a/a0/Zinc_003.png)
![Zinc 005.png](/w/images/thumb/e/e4/Zinc_005.png/600px-Zinc_005.png)
Creating A Zinc Project
After installing the template, create a new project using the new template.
![Zinc 006.png](/w/images/thumb/9/9c/Zinc_006.png/400px-Zinc_006.png)
Once the project is created, move the Zinc API SWC into your libs folder (this example is not using Flex).
![Zinc 007.png](/w/images/thumb/d/d3/Zinc_007.png/600px-Zinc_007.png)
With your API ready, add some sample code. This example uses Keith Peter's MinimalComps as a button that will trigger Zinc's API to open a native system dialogue box.
![Zinc 008.png](/w/images/thumb/5/50/Zinc_008.png/600px-Zinc_008.png)
![Zinc 009.png](/w/images/a/a8/Zinc_009.png)
Last compile your application, creating a .SWF. You'll notice that nothing is visible on the stage. This is because the application is waiting for Zinc to startup via this line of code:
mdm.Application.init();
When building your application, it's suggested to not do this until you're ready to package it via Zinc Builder.
![Zinc 010.png](/w/images/thumb/0/09/Zinc_010.png/600px-Zinc_010.png)