Building Standalone Applications With FDT & Zinc 4.0

From FDT Documentation

(Difference between revisions)
Jump to: navigation, search
(Compiling and Viewing)
(Setting Up For Packaging)
Line 49: Line 49:
=Packaging You SWF In Zinc=
=Packaging You SWF In Zinc=
==Setting Up For Packaging==
==Setting Up For Packaging==
When you open Zinc, open up your SWF to begin the packaging process.
When you open Zinc, select your SWF to begin the packaging process.

Revision as of 23:18, 22 November 2011

Fdt zinc.gif 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.



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). - Zinc 4.0 - The Ultimate SWF2EXE for Flash & Flex 2.png
Zinc 002.png
Zinc 004.png

Download & Install The FDT Zinc Template

While this step is optional, many will find it helpful when doing Zinc development.

Download soruce files.png

After downloading the template (above) place it in your FDT home folder.

Zinc 003.png
Zinc 005.png

Creating A Zinc Project In FDT

Setup Your Project

After installing the template, create a new project using the new template.

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

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.

Zinc 008.png
Zinc 009.png

Compiling and Viewing

Last, compile your application to create 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:


When building your application, it's suggested to not add this until you're ready to package it via Zinc Builder.

Zinc 010.png

Packaging You SWF In Zinc

Setting Up For Packaging

When you open Zinc, select your SWF to begin the packaging process.

Zinc 011.png

Because this example is using Zinc to open a native OS dialogue box, you'll need to make sure the proper APIs are exposed for packaging.

Zinc 012.png


When ready, build you application via Project>Build Project.

Zinc 013.png
Zinc 014.png

Viewing and Using You Application

When Zinc packages your application, it will be launched.

Zinc 015.png

Zinc 016.png
Get FDT5