diff --git a/spine-as3/README.md b/spine-as3/README.md index 33b21559b..9c3098b83 100644 --- a/spine-as3/README.md +++ b/spine-as3/README.md @@ -16,12 +16,26 @@ spine-as3 supports all Spine features, including meshes. If using the `spine.fla spine-as3 does not yet support loading the binary format. -## Setup +## Usage +1. Create a new Flex or Adobe AIR project in your preferred IDE. +2. Download the Spine Runtimes source using git (`git clone https://github.com/esotericsoftware/spine-runtimes`) or download it [as a zip](https://github.com/EsotericSoftware/spine-runtimes/archive/master.zip) +3. Add the sources from `spine-as3/spine-as3/src/` to your project -1. Download the Spine Runtimes source using [git](https://help.github.com/articles/set-up-git) or by downloading it [as a zip](https://github.com/EsotericSoftware/spine-runtimes/archive/master.zip). -1. Using [FDT](http://fdt.powerflasher.com/), import the spine-as3 project by choosing File -> Import -> Existing projects. For other IDEs you will need to create a new project and import the source. +## Example +The Spine AS3 example works on Windows, Linux and Mac OS X. This guide assumes you are using [FDT Free](http://fdt.powerflasher.com/) as your development environment. -Alternatively, the contents of the `spine-as3/src` directory can be copied into your project. +1. Download [FDT free](http://fdt.powerflasher.com/buy-download/) for your operating system. +3. Download and install Adobe Flash Player 22 with debugging support](https://www.adobe.com/support/flashplayer/debug_downloads.html#fp15) +2. Download the latest [Flex SDK](http://www.adobe.com/devnet/flex/flex-sdk-download.html). We assume it will be installed to some folder on your disk called `flex_sdk`. +3. Download the latest [Adobe AIR SDK](http://www.adobe.com/devnet/air/air-sdk-download.html) +4. Extract the AIR SDK contents, and copy them to your `flex_sdk` folder. This will replace the Adobe AIR version shipped with Flex. +5. Open FDT, go to `Preferences -> FDT -> Installed SDKs` +6. Click `Add` and browse to `flex_sdk` +7. Go to `File -> Import -> General -> Existing Projects into Workspace` +6. Browse to `spine-as3/`. You should see both the `spine-as3` and `spine-as3-example` project in the import dialog. Click `Finish` +8. Right click the `Main.as` file in `spine-as3-example/src/spine` in the FDT explorer and select `Debug As -> FDT SWF Application` + +**Note**: FDT Free does not allow project dependencies. If you modify the sources of `spine-as3`, you will have to compile the project to an `.swc` and place it in `spine-as3-example/libs`. ## Demos diff --git a/spine-as3/spine-as3-example/.settings/com.powerflasher.fdt.core.prefs b/spine-as3/spine-as3-example/.settings/com.powerflasher.fdt.core.prefs index f1f8e07dd..fe086a943 100644 --- a/spine-as3/spine-as3-example/.settings/com.powerflasher.fdt.core.prefs +++ b/spine-as3/spine-as3-example/.settings/com.powerflasher.fdt.core.prefs @@ -3,6 +3,7 @@ com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-librarie com.powerflasher.fdt.core.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug} com.powerflasher.fdt.core.DefaultOutputFolder=bin com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer +com.powerflasher.fdt.core.IncludeTestResources=false com.powerflasher.fdt.core.Language=AS3 com.powerflasher.fdt.core.Manifests= com.powerflasher.fdt.core.PassClasspath=true @@ -13,7 +14,7 @@ com.powerflasher.fdt.core.PassManifests=true com.powerflasher.fdt.core.PassRsls=false com.powerflasher.fdt.core.PassSwcs=true com.powerflasher.fdt.core.PlatformType=WEB -com.powerflasher.fdt.core.PlayerVersion=11.1 +com.powerflasher.fdt.core.PlayerVersion=22.0 com.powerflasher.fdt.core.ProjectTypeHint=Web com.powerflasher.fdt.core.Runtime=Flash_Player com.powerflasher.fdt.core.SdkName=Flex 4.6.0 diff --git a/spine-as3/spine-as3-example/src/spine/Main.as b/spine-as3/spine-as3-example/src/spine/Main.as index ad9edd32c..9e4a294ee 100644 --- a/spine-as3/spine-as3-example/src/spine/Main.as +++ b/spine-as3/spine-as3-example/src/spine/Main.as @@ -68,7 +68,7 @@ public class Main extends Sprite { skeleton.y = 560; skeleton.state.onStart.add(function (trackIndex:int) : void { - trace(trackIndex + " start: " + skeleton.state.getCurrent(trackIndex)); + trace(trackIndex + " fuu start: " + skeleton.state.getCurrent(trackIndex)); }); skeleton.state.onEnd.add(function (trackIndex:int) : void { trace(trackIndex + " end: " + skeleton.state.getCurrent(trackIndex)); diff --git a/spine-as3/spine-as3/.settings/com.powerflasher.fdt.core.prefs b/spine-as3/spine-as3/.settings/com.powerflasher.fdt.core.prefs index 150a7ff6b..9133446bf 100644 --- a/spine-as3/spine-as3/.settings/com.powerflasher.fdt.core.prefs +++ b/spine-as3/spine-as3/.settings/com.powerflasher.fdt.core.prefs @@ -3,6 +3,7 @@ com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-librarie com.powerflasher.fdt.core.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug} com.powerflasher.fdt.core.DefaultOutputFolder=bin com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer +com.powerflasher.fdt.core.IncludeTestResources=false com.powerflasher.fdt.core.Language=AS3 com.powerflasher.fdt.core.Manifests= com.powerflasher.fdt.core.PassClasspath=true @@ -13,7 +14,7 @@ com.powerflasher.fdt.core.PassManifests=true com.powerflasher.fdt.core.PassRsls=false com.powerflasher.fdt.core.PassSwcs=true com.powerflasher.fdt.core.PlatformType=WEB -com.powerflasher.fdt.core.PlayerVersion=11.1 +com.powerflasher.fdt.core.PlayerVersion=22.0 com.powerflasher.fdt.core.ProjectTypeHint=Web com.powerflasher.fdt.core.Runtime=Flash_Player com.powerflasher.fdt.core.SdkName=Flex 4.6.0 diff --git a/spine-starling/spine-starling-example/.settings/com.powerflasher.fdt.core.prefs b/spine-starling/spine-starling-example/.settings/com.powerflasher.fdt.core.prefs index d1623e619..403470f21 100644 --- a/spine-starling/spine-starling-example/.settings/com.powerflasher.fdt.core.prefs +++ b/spine-starling/spine-starling-example/.settings/com.powerflasher.fdt.core.prefs @@ -3,6 +3,7 @@ com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-librarie com.powerflasher.fdt.core.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug} com.powerflasher.fdt.core.DefaultOutputFolder=bin com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer +com.powerflasher.fdt.core.IncludeTestResources=false com.powerflasher.fdt.core.Language=AS3 com.powerflasher.fdt.core.Manifests= com.powerflasher.fdt.core.PassClasspath=true @@ -13,7 +14,7 @@ com.powerflasher.fdt.core.PassManifests=true com.powerflasher.fdt.core.PassRsls=false com.powerflasher.fdt.core.PassSwcs=true com.powerflasher.fdt.core.PlatformType=WEB -com.powerflasher.fdt.core.PlayerVersion=11.1 +com.powerflasher.fdt.core.PlayerVersion=22.0 com.powerflasher.fdt.core.ProjectTypeHint=Web com.powerflasher.fdt.core.Runtime=Flash_Player com.powerflasher.fdt.core.SdkName=Flex 4.6.0 diff --git a/spine-starling/spine-starling/.settings/com.powerflasher.fdt.core.prefs b/spine-starling/spine-starling/.settings/com.powerflasher.fdt.core.prefs index d1623e619..403470f21 100644 --- a/spine-starling/spine-starling/.settings/com.powerflasher.fdt.core.prefs +++ b/spine-starling/spine-starling/.settings/com.powerflasher.fdt.core.prefs @@ -3,6 +3,7 @@ com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-librarie com.powerflasher.fdt.core.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug} com.powerflasher.fdt.core.DefaultOutputFolder=bin com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer +com.powerflasher.fdt.core.IncludeTestResources=false com.powerflasher.fdt.core.Language=AS3 com.powerflasher.fdt.core.Manifests= com.powerflasher.fdt.core.PassClasspath=true @@ -13,7 +14,7 @@ com.powerflasher.fdt.core.PassManifests=true com.powerflasher.fdt.core.PassRsls=false com.powerflasher.fdt.core.PassSwcs=true com.powerflasher.fdt.core.PlatformType=WEB -com.powerflasher.fdt.core.PlayerVersion=11.1 +com.powerflasher.fdt.core.PlayerVersion=22.0 com.powerflasher.fdt.core.ProjectTypeHint=Web com.powerflasher.fdt.core.Runtime=Flash_Player com.powerflasher.fdt.core.SdkName=Flex 4.6.0