mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 14:24:53 +08:00
[as3][starling] Fixed up AS3 README.md, updated FDT projects to use latest AIR and Flash Player (22) class libraries. Needed for Starling 2.0 and mesh support in pure Flash API
This commit is contained in:
parent
5e08751fb8
commit
413bda2de6
@ -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.
|
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).
|
## Example
|
||||||
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.
|
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
|
## Demos
|
||||||
|
|
||||||
|
|||||||
@ -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.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug}
|
||||||
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
||||||
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
||||||
|
com.powerflasher.fdt.core.IncludeTestResources=false
|
||||||
com.powerflasher.fdt.core.Language=AS3
|
com.powerflasher.fdt.core.Language=AS3
|
||||||
com.powerflasher.fdt.core.Manifests=
|
com.powerflasher.fdt.core.Manifests=
|
||||||
com.powerflasher.fdt.core.PassClasspath=true
|
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.PassRsls=false
|
||||||
com.powerflasher.fdt.core.PassSwcs=true
|
com.powerflasher.fdt.core.PassSwcs=true
|
||||||
com.powerflasher.fdt.core.PlatformType=WEB
|
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.ProjectTypeHint=Web
|
||||||
com.powerflasher.fdt.core.Runtime=Flash_Player
|
com.powerflasher.fdt.core.Runtime=Flash_Player
|
||||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||||
|
|||||||
@ -68,7 +68,7 @@ public class Main extends Sprite {
|
|||||||
skeleton.y = 560;
|
skeleton.y = 560;
|
||||||
|
|
||||||
skeleton.state.onStart.add(function (trackIndex:int) : void {
|
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 {
|
skeleton.state.onEnd.add(function (trackIndex:int) : void {
|
||||||
trace(trackIndex + " end: " + skeleton.state.getCurrent(trackIndex));
|
trace(trackIndex + " end: " + skeleton.state.getCurrent(trackIndex));
|
||||||
|
|||||||
@ -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.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug}
|
||||||
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
||||||
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
||||||
|
com.powerflasher.fdt.core.IncludeTestResources=false
|
||||||
com.powerflasher.fdt.core.Language=AS3
|
com.powerflasher.fdt.core.Language=AS3
|
||||||
com.powerflasher.fdt.core.Manifests=
|
com.powerflasher.fdt.core.Manifests=
|
||||||
com.powerflasher.fdt.core.PassClasspath=true
|
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.PassRsls=false
|
||||||
com.powerflasher.fdt.core.PassSwcs=true
|
com.powerflasher.fdt.core.PassSwcs=true
|
||||||
com.powerflasher.fdt.core.PlatformType=WEB
|
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.ProjectTypeHint=Web
|
||||||
com.powerflasher.fdt.core.Runtime=Flash_Player
|
com.powerflasher.fdt.core.Runtime=Flash_Player
|
||||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||||
|
|||||||
@ -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.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug}
|
||||||
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
||||||
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
||||||
|
com.powerflasher.fdt.core.IncludeTestResources=false
|
||||||
com.powerflasher.fdt.core.Language=AS3
|
com.powerflasher.fdt.core.Language=AS3
|
||||||
com.powerflasher.fdt.core.Manifests=
|
com.powerflasher.fdt.core.Manifests=
|
||||||
com.powerflasher.fdt.core.PassClasspath=true
|
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.PassRsls=false
|
||||||
com.powerflasher.fdt.core.PassSwcs=true
|
com.powerflasher.fdt.core.PassSwcs=true
|
||||||
com.powerflasher.fdt.core.PlatformType=WEB
|
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.ProjectTypeHint=Web
|
||||||
com.powerflasher.fdt.core.Runtime=Flash_Player
|
com.powerflasher.fdt.core.Runtime=Flash_Player
|
||||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||||
|
|||||||
@ -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.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug}
|
||||||
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
||||||
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
com.powerflasher.fdt.core.DefaultPlayer=External_SWF_Viewer
|
||||||
|
com.powerflasher.fdt.core.IncludeTestResources=false
|
||||||
com.powerflasher.fdt.core.Language=AS3
|
com.powerflasher.fdt.core.Language=AS3
|
||||||
com.powerflasher.fdt.core.Manifests=
|
com.powerflasher.fdt.core.Manifests=
|
||||||
com.powerflasher.fdt.core.PassClasspath=true
|
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.PassRsls=false
|
||||||
com.powerflasher.fdt.core.PassSwcs=true
|
com.powerflasher.fdt.core.PassSwcs=true
|
||||||
com.powerflasher.fdt.core.PlatformType=WEB
|
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.ProjectTypeHint=Web
|
||||||
com.powerflasher.fdt.core.Runtime=Flash_Player
|
com.powerflasher.fdt.core.Runtime=Flash_Player
|
||||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user