Start New Project

From Web-Adventure-Kit-Wiki

Jump to: navigation, search

To start a new blank project using WAK you have to do it starting from the empty skeleton project provided with every release of WAK.

Flex Builder is used to demonstrate in the following explanation, but can be applied to any IDE using Flex SDK.

* 1 - If you did't do it yet, download the latest WAK release from the download section of the WAK web site here. And extract it wherever you like.

* 2 – In the tools directory you will find a file called ResGenerator.air run it and finish the installation. To complete this step you need to have Adobe Air Runtime installed you can get it here.

* 3 – Copy the folder SkeletonProject to some place and rename it with the name of your project.

* 4 – Open Flex Builder and create a new Actionscript project, pointing to the recently renamed folder created from SkeletonProject.

Image:newproject.png

* 5 – Click Next, In the “Library Path” tab click “Add SWC...” and browse to the folder where you extracted the WAK release zip file in the step 1 and select Web_Adventure_Kit.swc . If you like, you can use the WAK's source code instead of the swc, which is not included in the release. But if you checkout the code from our SVN you have to specify the source folder in the “Source Path” tab.

Image:addswc.png

* 6 – Finally click on Finish button.

* 7 – Our next step is change the main file of the project. Flex Builder by default creates you a “.as” file with the name of your project. Right click on file "SkeletonProject.as" and select “Set as Default Application”

Image:eclipseproject.png

* 8 – Delete your old main file from the project. In my case is “MyNewWakProject.as” .

* 9 – Rename SkeletonProject.as with the name you like .as . I'll use the same name of the project so my skeleton main file will be called “MyNewWakProject.as” .

* 10 – Open your renamed file. And make a Search and replace, or change it by hand of “SkeletonProject” for your name used in the file, in my case “MyNewWakProject”. So the class and the file name are the same.

* 11 – That's it. Just Build and Run your brand new adventure. You will see something like this:


Image:SkeletonProject.png

Personal tools