Building Standalone Applications With FDT & Zinc 4.0
From FDT Documentation
(→Creating A Zinc Project) |
(→Creating A Zinc Project In FDT) |
||
Line 25: | Line 25: | ||
=Creating A Zinc Project In FDT= | =Creating A Zinc Project In FDT= | ||
+ | ==Setup Your Project== | ||
After installing the template, create a new project using the new template. | After installing the template, create a new project using the new template. | ||
<center>[[File:Zinc_006.png|400px]]</center> | <center>[[File:Zinc_006.png|400px]]</center> | ||
Once the project is created, move the Zinc API SWC into your libs folder (this example is not using Flex). | Once the project is created, move the Zinc API SWC into your libs folder (this example is not using Flex). | ||
<center>[[File:Zinc_007.png|600px]]</center> | <center>[[File:Zinc_007.png|600px]]</center> | ||
+ | |||
+ | ==Using the Zinc API== | ||
With your API ready, add some sample code. This example uses Keith Peter's [http://www.minimalcomps.com/ MinimalComps] as a button that will trigger Zinc's API to open a native system dialogue box. | With your API ready, add some sample code. This example uses Keith Peter's [http://www.minimalcomps.com/ MinimalComps] as a button that will trigger Zinc's API to open a native system dialogue box. | ||
Line 35: | Line 38: | ||
<center>[[File:Zinc_009.png]]</center> | <center>[[File:Zinc_009.png]]</center> | ||
+ | ==Compiling and Viewing== | ||
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: | 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: | ||
Revision as of 20:30, 22 November 2011
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).
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.
Creating A Zinc Project In FDT
Setup Your Project
After installing the template, create a new project using the new template.
Once the project is created, move the Zinc API SWC into your libs folder (this example is not using Flex).
Using the Zinc API
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.
Compiling and Viewing
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.