Skip to content

C2D 01 Getting Started

robsilv edited this page Apr 12, 2013 · 8 revisions

First of all, please make sure you have the latest AIRSDK available on your machine.

Next, make sure to grab CadetEngine from the repo. We recommend cloning it via Github for Mac or Github for Windows.

Once you've got the basics set up, import the CadetEngine ActionScript Library project into your editor of choice. For simplicity's sake, these tutorials will only provide instructions relating to the latest version of Adobe Flash Builder, if you're using a different editor, hopefully the functionality shouldn't be drastically different.

In Flash Builder, navigate to "File/Import Flash Builder Project...". Select "Project Folder" in the pop up and browse to the CadetEngine folder downloaded earlier.

This first set of introductory tutorials will require Cadet, Cadet2D and Cadet2DBox2D. Add the Cadet project by selecting "CadetEngine/cadet", press "OK" then "finish".

Now go through the same process two more times, importing Cadet2D and Cadet2DBox2D from their folders within "CadetEngine".

Create a new project.

  1. Create a new ActionScript project.
  2. Call it CadetHelloWorld and exit the wizard
  3. Open the project’s properties.
  4. Open the ‘ActionScript Build Path’ screen.
  5. Add CadetEngine, CadetEngine_Ext_2D and CadetEngine_Ext_2DBox2D to the project's library path.
  6. Open the 'ActionScript Compiler' screen.
  7. Turn off 'Copy non-embedded files to output folder'
  8. Turn off 'Generate HTML wrapper file'.
  9. Make sure the default SDK is set to the latest AIRSDK.
  10. Close the project properties panel.

< Previous | Next >