mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Merge branch '3.8' into 3.9-beta
This commit is contained in:
commit
0fa20f151f
2
.gitignore
vendored
2
.gitignore
vendored
@ -16,6 +16,8 @@ target
|
||||
.idea/
|
||||
build/
|
||||
cmake-build-debug/
|
||||
.vscode/settings.json
|
||||
spine-runtimes.code-workspace
|
||||
|
||||
spine-as3/spine-as3/.settings/com.powerflasher.fdt.core.metaDataTags.prefs
|
||||
|
||||
|
||||
@ -16,9 +16,7 @@ For the official legal terms governing the Spine Runtimes, please read the [Spin
|
||||
|
||||
spine-as3 works with data exported from Spine 3.9.xx.
|
||||
|
||||
spine-as3 supports all Spine features, including meshes. If using the `spine.flash` classes for rendering, meshes are not supported.
|
||||
|
||||
spine-as3 does not yet support loading the binary format.
|
||||
spine-as3 supports all Spine features, including meshes. If using the `spine.flash` classes for rendering, meshes and two color tinting are not supported.
|
||||
|
||||
## Usage
|
||||
1. Create a new Flex or Adobe AIR project in your preferred IDE.
|
||||
@ -26,25 +24,23 @@ spine-as3 does not yet support loading the binary format.
|
||||
3. Add the sources from `spine-as3/spine-as3/src/` to your project
|
||||
|
||||
## 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.
|
||||
The Spine AS3 example works on Windows, Linux and Mac OS X. This guide assumes you are using [Visual Studio Code](https://code.visualstudio.com/) together with the [ActionScript & MXML extension for Visual Studio Code](https://github.com/BowlerHatLLC/vscode-as3mxml/wiki) as your development environment.
|
||||
|
||||
1. Download [FDT free](http://fdt.powerflasher.com/buy-download/) for your operating system.
|
||||
3. Download and install [Adobe Flash Player 23 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`
|
||||
1. Install [Visual Studio Code](https://code.visualstudio.com/).
|
||||
2. Install the [ActionScript & MXML extension for Visual Studio Code](https://github.com/BowlerHatLLC/vscode-as3mxml/wiki).
|
||||
3. Install [Adobe Flash Player Projector version 32 with debugging support](https://www.adobe.com/support/flashplayer/debug_downloads.html#fp15).
|
||||
4. Install the [Adobe AIR SDK 32](http://www.adobe.com/devnet/air/air-sdk-download.html) by simply extracting it to a known location.
|
||||
|
||||
**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`.
|
||||
To run the Flash example project `spine-as3-example`.
|
||||
|
||||
## Demos
|
||||
1. Open the `spine-as3-example/` folder in Visual Studio Code.
|
||||
2. Set the AIR SDK location when prompted.
|
||||
3. Launch the `Launch Spine AS3 Example` launch configuration.
|
||||
|
||||
* [Flash Demo](http://esotericsoftware.com/files/runtimes/spine-as3/spineboy/index.html)
|
||||
[Flash Demo source](spine-as3-example/src/spine/Main.as#L43)
|
||||
Instead of directly adding the sources of from `spine-as3/src` to your project, you can also link the SWC file `spine-as3/lib/spine-as3.swc`. To (re-)compile this file yourself with Visual Studio Code:
|
||||
|
||||
1. Open the `spine-as3/` folder in Visual Studio Code.
|
||||
2. Press `CTRL + SHIFT + B` (`CMD + SHIFT + B` on macOS) and select `ActionScript: compile release - asconfig.json`
|
||||
|
||||
## Notes
|
||||
|
||||
|
||||
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>spine-as3-example</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.powerflasher.fdt.core.FlashBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.powerflasher.fdt.core.FlashNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@ -1,7 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<AS3Classpath>
|
||||
<AS3LibraryFolder>lib</AS3LibraryFolder>
|
||||
<AS3Classpath generateProblems="true" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/player/30.0/playerglobal.swc</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="source" useAsSharedCode="false">src</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="lib" useAsSharedCode="false">lib/spine-as3.swc</AS3Classpath>
|
||||
</AS3Classpath>
|
||||
@ -1,24 +0,0 @@
|
||||
com.powerflasher.fdt.core.CompatiblePlayers=External_SWF_Viewer\:Browser\:Standalone_Flash_Player
|
||||
com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-libraries\=true\n-target-player\={playerVersion}\n-library-path+\="{flexSDK}/frameworks/locale/en_US"\n-default-size\=550,400
|
||||
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
|
||||
com.powerflasher.fdt.core.PassDefines=true
|
||||
com.powerflasher.fdt.core.PassExterns=false
|
||||
com.powerflasher.fdt.core.PassMainclass=true
|
||||
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=30.0
|
||||
com.powerflasher.fdt.core.ProjectTypeHint=Web
|
||||
com.powerflasher.fdt.core.Runtime=Flash_Player
|
||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||
com.powerflasher.fdt.core.mobile.AirDesktop.ACTIVE=true
|
||||
com.powerflasher.fdt.core.mobile.AirDesktop.MOBILE.DESCRIPTOR=bin/spine-as3-example-app.xml
|
||||
com.powerflasher.fdt.core.useProjectProblems.com.powerflasher.fdt.core.AS3RegionType=true
|
||||
eclipse.preferences.version=1
|
||||
@ -1,2 +0,0 @@
|
||||
com.powerflasher.fdt.code.deadCode.AS3=Disabled
|
||||
eclipse.preferences.version=1
|
||||
@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="com.powerflasher.fdt.ui.MxmlcGroup">
|
||||
<stringAttribute key="ADL_DESCRIPTOR_FILE" value=""/>
|
||||
<stringAttribute key="ADOBE_FLASH_PLAYER_EXECUTABLE" value=""/>
|
||||
<booleanAttribute key="ADOBE_FLASH_PLAYER_USE_EXECUTABLE" value="false"/>
|
||||
<booleanAttribute key="ADVANCED_TELEMTRY" value="false"/>
|
||||
<intAttribute key="AIR_VIEWER_CONF" value="0"/>
|
||||
<stringAttribute key="APP_ARGUMENTS" value=""/>
|
||||
<stringAttribute key="ARGUMENTS" value="-static-link-runtime-shared-libraries=true -target-player={playerVersion} -library-path+="{flexSDK}/frameworks/locale/en_US" -default-size=550,400"/>
|
||||
<listAttribute key="COMPILER_CONSTANTS"/>
|
||||
<stringAttribute key="COMPILER_TECHNOLOGY" value="Flex SDK"/>
|
||||
<booleanAttribute key="DISABLE_COMPILE_PROCESS" value="false"/>
|
||||
<booleanAttribute key="FORCE_FRESH_COMPILATION" value="false"/>
|
||||
<booleanAttribute key="FORCE_INCLUDE_TEST_RESOURCES" value="false"/>
|
||||
<booleanAttribute key="IGNORE_SWF_LOCATION_PROBLEM" value="false"/>
|
||||
<booleanAttribute key="INCLUDE_TEST_RESOURCES" value="false"/>
|
||||
<booleanAttribute key="KILL_PREVIOUS_VIEWER" value="true"/>
|
||||
<stringAttribute key="LAUNCHER_DEPENDENCIES" value="[Self]"/>
|
||||
<stringAttribute key="MAIN_CLASS" value="src/spine/examples/Main.as"/>
|
||||
<stringAttribute key="MOBILE_PRESET" value=""/>
|
||||
<booleanAttribute key="NEW_WINDOW_EACH_LAUNCH" value="false"/>
|
||||
<stringAttribute key="OUTPUT" value="bin/spine-as3-example.swf"/>
|
||||
<booleanAttribute key="PASS_CP" value="true"/>
|
||||
<booleanAttribute key="PASS_DEFINES" value="true"/>
|
||||
<booleanAttribute key="PASS_EXTERNS" value="false"/>
|
||||
<booleanAttribute key="PASS_MAIN_CLASS" value="true"/>
|
||||
<booleanAttribute key="PASS_MANIFESTS" value="true"/>
|
||||
<booleanAttribute key="PASS_RSLS" value="false"/>
|
||||
<booleanAttribute key="PASS_SWCS" value="true"/>
|
||||
<intAttribute key="PLAYER_HEIGHT" value="400"/>
|
||||
<booleanAttribute key="PLAYER_SET_SIZE" value="false"/>
|
||||
<intAttribute key="PLAYER_WIDTH" value="550"/>
|
||||
<stringAttribute key="POST_COMPILE_ANT" value=""/>
|
||||
<stringAttribute key="PREFERRED_BROWSER" value=""/>
|
||||
<stringAttribute key="PRE_COMPILE_ANT" value=""/>
|
||||
<stringAttribute key="PROJECT_NAME" value="spine-as3-example"/>
|
||||
<stringAttribute key="PUBLISHER_ID" value=""/>
|
||||
<booleanAttribute key="START_DEBUGGER" value="true"/>
|
||||
<booleanAttribute key="START_SWF_ENABLED" value="true"/>
|
||||
<stringAttribute key="START_SWF_LOCATION" value="bin/spine-as3-example.swf"/>
|
||||
<stringAttribute key="START_SWF_WITH" value="Adobe Flash Player"/>
|
||||
<booleanAttribute key="SUPPRESS_EXCEPTION_POPUP" value="false"/>
|
||||
<booleanAttribute key="USE_PROJECT_COMPILER_ARGUMENTS" value="true"/>
|
||||
<booleanAttribute key="WAITING_DIALOG_PLUGIN" value="false"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/spine-as3-example"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
</launchConfiguration>
|
||||
@ -1,2 +0,0 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding/<project>=UTF-8
|
||||
14
spine-as3/spine-as3-example/.vscode/launch.json
vendored
Normal file
14
spine-as3/spine-as3-example/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "swf",
|
||||
"request": "launch",
|
||||
"name": "Launch Spine AS3 SWF",
|
||||
"preLaunchTask": "ActionScript: compile debug - asconfig.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
18
spine-as3/spine-as3-example/asconfig.json
Normal file
18
spine-as3/spine-as3-example/asconfig.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"output": "bin/spine-as3-example.swf",
|
||||
"source-path": [
|
||||
"src",
|
||||
"../spine-as3/src"
|
||||
],
|
||||
"default-size": {
|
||||
"width": 550,
|
||||
"height": 500
|
||||
},
|
||||
"target-player": "32.0",
|
||||
"swf-version": 43
|
||||
},
|
||||
"files": [
|
||||
"src/spine/examples/Main.as"
|
||||
]
|
||||
}
|
||||
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>spine-as3</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.powerflasher.fdt.core.FlashBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.powerflasher.fdt.core.FlashNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@ -1,5 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="source" useAsSharedCode="false">src</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/player/30.0/playerglobal.swc</AS3Classpath>
|
||||
</AS3Classpath>
|
||||
@ -1,22 +0,0 @@
|
||||
com.powerflasher.fdt.core.CompatiblePlayers=External_SWF_Viewer\:Browser\:Standalone_Flash_Player
|
||||
com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-libraries\=true\n-target-player\={playerVersion}\n-library-path+\="{flexSDK}/frameworks/locale/en_US"\n-default-size\=550,400
|
||||
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
|
||||
com.powerflasher.fdt.core.PassDefines=true
|
||||
com.powerflasher.fdt.core.PassExterns=false
|
||||
com.powerflasher.fdt.core.PassMainclass=true
|
||||
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=30.0
|
||||
com.powerflasher.fdt.core.ProjectTypeHint=Web
|
||||
com.powerflasher.fdt.core.Runtime=Flash_Player
|
||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||
com.powerflasher.fdt.core.useProjectProblems.com.powerflasher.fdt.core.AS3RegionType=true
|
||||
eclipse.preferences.version=1
|
||||
@ -1,2 +0,0 @@
|
||||
com.powerflasher.fdt.typeProblems.implicitBooleanConversion.AS3=Disabled
|
||||
eclipse.preferences.version=1
|
||||
@ -1,3 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<exclude />
|
||||
|
||||
@ -1,24 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="com.powerflasher.fdt.ui.CompcGroup">
|
||||
<booleanAttribute key="ADVANCED_TELEMTRY" value="false"/>
|
||||
<stringAttribute key="ARGUMENTS" value=" -target-player=30.0"/>
|
||||
<listAttribute key="COMPILER_CONSTANTS"/>
|
||||
<stringAttribute key="COMPILER_TECHNOLOGY" value="Flex SDK"/>
|
||||
<booleanAttribute key="FORCE_FRESH_COMPILATION" value="false"/>
|
||||
<booleanAttribute key="INCLUDE_TEST_RESOURCES" value="false"/>
|
||||
<stringAttribute key="LAUNCHER_DEPENDENCIES" value="[Self]"/>
|
||||
<stringAttribute key="MAIN_CLASS" value=""/>
|
||||
<stringAttribute key="OUTPUT" value="../spine-as3-example/lib/spine-as3.swc"/>
|
||||
<booleanAttribute key="PASS_CP" value="true"/>
|
||||
<booleanAttribute key="PASS_DEFINES" value="true"/>
|
||||
<booleanAttribute key="PASS_EXTERNS" value="true"/>
|
||||
<booleanAttribute key="PASS_MANIFESTS" value="true"/>
|
||||
<booleanAttribute key="PASS_SWCS" value="true"/>
|
||||
<stringAttribute key="PROJECT_NAME" value="spine-as3"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/spine-as3"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
</launchConfiguration>
|
||||
@ -1,52 +0,0 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/spine/Bone.as=UTF-8
|
||||
encoding//src/spine/BoneData.as=UTF-8
|
||||
encoding//src/spine/IkConstraint.as=UTF-8
|
||||
encoding//src/spine/IkConstraintData.as=UTF-8
|
||||
encoding//src/spine/Interpolation.as=UTF-8
|
||||
encoding//src/spine/MathUtils.as=UTF-8
|
||||
encoding//src/spine/PathConstraint.as=UTF-8
|
||||
encoding//src/spine/PathConstraintData.as=UTF-8
|
||||
encoding//src/spine/Skeleton.as=UTF-8
|
||||
encoding//src/spine/SkeletonClipping.as=UTF-8
|
||||
encoding//src/spine/SkeletonData.as=UTF-8
|
||||
encoding//src/spine/SkeletonJson.as=UTF-8
|
||||
encoding//src/spine/Skin.as=UTF-8
|
||||
encoding//src/spine/TransformConstraint.as=UTF-8
|
||||
encoding//src/spine/TransformConstraintData.as=UTF-8
|
||||
encoding//src/spine/Triangulator.as=UTF-8
|
||||
encoding//src/spine/Updatable.as=UTF-8
|
||||
encoding//src/spine/Vertex.as=UTF-8
|
||||
encoding//src/spine/VertexEffect.as=UTF-8
|
||||
encoding//src/spine/animation/Animation.as=UTF-8
|
||||
encoding//src/spine/animation/AnimationState.as=UTF-8
|
||||
encoding//src/spine/animation/AnimationStateData.as=UTF-8
|
||||
encoding//src/spine/animation/AttachmentTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/ColorTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/CurveTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/DeformTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/DrawOrderTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/EventQueue.as=UTF-8
|
||||
encoding//src/spine/animation/EventTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/EventType.as=UTF-8
|
||||
encoding//src/spine/animation/IkConstraintTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/Listeners.as=UTF-8
|
||||
encoding//src/spine/animation/MixBlend.as=UTF-8
|
||||
encoding//src/spine/animation/MixDirection.as=UTF-8
|
||||
encoding//src/spine/animation/PathConstraintMixTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/PathConstraintPositionTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/PathConstraintSpacingTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/RotateTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/ScaleTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/ShearTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/Timeline.as=UTF-8
|
||||
encoding//src/spine/animation/TimelineType.as=UTF-8
|
||||
encoding//src/spine/animation/TrackEntry.as=UTF-8
|
||||
encoding//src/spine/animation/TransformConstraintTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/TranslateTimeline.as=UTF-8
|
||||
encoding//src/spine/animation/TwoColorTimeline.as=UTF-8
|
||||
encoding//src/spine/interpolation/Pow.as=UTF-8
|
||||
encoding//src/spine/interpolation/PowOut.as=UTF-8
|
||||
encoding//src/spine/vertexeffects/JitterEffect.as=UTF-8
|
||||
encoding//src/spine/vertexeffects/SwirlEffect.as=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
13
spine-as3/spine-as3/asconfig.json
Normal file
13
spine-as3/spine-as3/asconfig.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"type": "lib",
|
||||
"compilerOptions": {
|
||||
"source-path": [
|
||||
"src"
|
||||
],
|
||||
"include-sources": [
|
||||
"src"
|
||||
],
|
||||
"output": "../spine-as3/lib/spine-as3.swc",
|
||||
"target-player": "32.0"
|
||||
}
|
||||
}
|
||||
BIN
spine-as3/spine-as3/lib/spine-as3.swc
Normal file
BIN
spine-as3/spine-as3/lib/spine-as3.swc
Normal file
Binary file not shown.
@ -18,33 +18,28 @@ spine-starling works with data exported from Spine 3.9.xx.
|
||||
|
||||
spine-starling supports all Spine features.
|
||||
|
||||
spine-starling does not yet support loading the binary format.
|
||||
|
||||
# Usage
|
||||
1. Create a new Starling 2.0 project as per the [documentation].
|
||||
2. Download the Spine Runtimes source using [git](https://help.github.com/articles/set-up-git) or by downloading it as a zip via the download button above.
|
||||
3. Copy the sources in `spine-as3/spine-as3/src/` and `spine-starling/spine-starling/src/` into your project's source directory
|
||||
|
||||
## 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.
|
||||
The Spine Starling example works on Windows, Linux and Mac OS X. This guide assumes you are using [Visual Studio Code](https://code.visualstudio.com/) together with the [ActionScript & MXML extension for Visual Studio Code](https://github.com/BowlerHatLLC/vscode-as3mxml/wiki) as your development environment.
|
||||
|
||||
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`
|
||||
7. Go to `File -> Import -> General -> Existing Projects into Workspace`
|
||||
6. Browse to `spine-starling/`. You should see both the `spine-starling` and `spine-starling-example` project in the import dialog. Click `Finish`
|
||||
8. Right click the `Main.as` file in `spine-starling-example/src/spine` in the FDT explorer and select `Debug As -> FDT SWF Application`
|
||||
1. Install [Visual Studio Code](https://code.visualstudio.com/).
|
||||
2. Install the [ActionScript & MXML extension for Visual Studio Code](https://github.com/BowlerHatLLC/vscode-as3mxml/wiki).
|
||||
3. Install [Adobe Flash Player Projector version 32 with debugging support](https://www.adobe.com/support/flashplayer/debug_downloads.html#fp15).
|
||||
4. Install the [Adobe AIR SDK 32](http://www.adobe.com/devnet/air/air-sdk-download.html) by simply extracting it to a known location.
|
||||
|
||||
**Note**: FDT Free does not allow project dependencies. If you modify the sources of `spine-as3` or `spine-starling`, you will have to compile the project to an `.swc` and place it in `spine-starling-example/libs`.
|
||||
To run the Flash example project `spine-starling-example`.
|
||||
|
||||
## Examples
|
||||
1. Open the `spine-starling-example/` folder in Visual Studio Code.
|
||||
2. Set the AIR SDK location when prompted.
|
||||
3. Launch the `Launch Spine Starling Example` launch configuration.
|
||||
|
||||
- [Spine atlas example](spine-starling-example/src/AtlasExample.as#L21)
|
||||
- [Starling atlas example](spine-starling-example/src/StarlingAtlasExample.as#L18)
|
||||
- [Skin example](spine-starling-example/src/GoblinsExample.as#L21)
|
||||
Instead of directly adding the sources of from `spine-starling/src` to your project, you can also link the SWC file `spine-starling/lib/spine-starling.swc`. To (re-)compile this file yourself with Visual Studio Code:
|
||||
|
||||
1. Open the `spine-starling/` folder in Visual Studio Code.
|
||||
2. Press `CTRL + SHIFT + B` (`CMD + SHIFT + B` on macOS) and select `ActionScript: compile release - asconfig.json`
|
||||
|
||||
Note that `spine-starling` depends on the sources of the `spine-as3` project. See the `asconfig.json` file more information on dependencies.
|
||||
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>spine-starling-example</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.powerflasher.fdt.core.FlashBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.powerflasher.fdt.core.FlashNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@ -1,9 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<AS3Classpath>
|
||||
<AS3LibraryFolder>lib</AS3LibraryFolder>
|
||||
<AS3Classpath generateProblems="true" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/player/30.0/playerglobal.swc</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="source" useAsSharedCode="false">src</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="lib" useAsSharedCode="false">lib/spine-starling.swc</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="lib" useAsSharedCode="false">lib/spine-as3.swc</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="lib" useAsSharedCode="false">lib/starling-2.4.swc</AS3Classpath>
|
||||
</AS3Classpath>
|
||||
@ -1,21 +0,0 @@
|
||||
com.powerflasher.fdt.core.CompatiblePlayers=External_SWF_Viewer\:Browser\:Standalone_Flash_Player
|
||||
com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-libraries\=true\n-target-player\={playerVersion}\n-library-path+\="{flexSDK}/frameworks/locale/en_US"\n-default-size\=550,400
|
||||
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
|
||||
com.powerflasher.fdt.core.PassDefines=true
|
||||
com.powerflasher.fdt.core.PassExterns=false
|
||||
com.powerflasher.fdt.core.PassMainclass=true
|
||||
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=30.0
|
||||
com.powerflasher.fdt.core.ProjectTypeHint=Web
|
||||
com.powerflasher.fdt.core.Runtime=Flash_Player
|
||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||
eclipse.preferences.version=1
|
||||
@ -1,2 +0,0 @@
|
||||
//lib/starling-2.0.1.swc=/Applications/flash/starling/src
|
||||
eclipse.preferences.version=1
|
||||
@ -1,51 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="com.powerflasher.fdt.ui.MxmlcGroup">
|
||||
<stringAttribute key="ADL_DESCRIPTOR_FILE" value=""/>
|
||||
<stringAttribute key="ADOBE_FLASH_PLAYER_EXECUTABLE" value=""/>
|
||||
<booleanAttribute key="ADOBE_FLASH_PLAYER_USE_EXECUTABLE" value="false"/>
|
||||
<booleanAttribute key="ADVANCED_TELEMTRY" value="false"/>
|
||||
<intAttribute key="AIR_VIEWER_CONF" value="0"/>
|
||||
<stringAttribute key="APP_ARGUMENTS" value=""/>
|
||||
<stringAttribute key="ARGUMENTS" value="-static-link-runtime-shared-libraries=true -target-player={playerVersion} -library-path+="{flexSDK}/frameworks/locale/en_US" -default-size=550,400"/>
|
||||
<listAttribute key="COMPILER_CONSTANTS"/>
|
||||
<stringAttribute key="COMPILER_TECHNOLOGY" value="ASC"/>
|
||||
<booleanAttribute key="DISABLE_COMPILE_PROCESS" value="false"/>
|
||||
<booleanAttribute key="FORCE_FRESH_COMPILATION" value="false"/>
|
||||
<booleanAttribute key="FORCE_INCLUDE_TEST_RESOURCES" value="false"/>
|
||||
<booleanAttribute key="IGNORE_SWF_LOCATION_PROBLEM" value="false"/>
|
||||
<booleanAttribute key="INCLUDE_TEST_RESOURCES" value="false"/>
|
||||
<booleanAttribute key="KILL_PREVIOUS_VIEWER" value="true"/>
|
||||
<stringAttribute key="LAUNCHER_DEPENDENCIES" value="[Self]"/>
|
||||
<stringAttribute key="MAIN_CLASS" value="src/spine/examples/Main.as"/>
|
||||
<stringAttribute key="MOBILE_PRESET" value=""/>
|
||||
<booleanAttribute key="NEW_WINDOW_EACH_LAUNCH" value="false"/>
|
||||
<stringAttribute key="OUTPUT" value="bin/spine-starling-example.swf"/>
|
||||
<booleanAttribute key="PASS_CP" value="true"/>
|
||||
<booleanAttribute key="PASS_DEFINES" value="true"/>
|
||||
<booleanAttribute key="PASS_EXTERNS" value="false"/>
|
||||
<booleanAttribute key="PASS_MAIN_CLASS" value="true"/>
|
||||
<booleanAttribute key="PASS_MANIFESTS" value="true"/>
|
||||
<booleanAttribute key="PASS_RSLS" value="false"/>
|
||||
<booleanAttribute key="PASS_SWCS" value="true"/>
|
||||
<intAttribute key="PLAYER_HEIGHT" value="400"/>
|
||||
<booleanAttribute key="PLAYER_SET_SIZE" value="false"/>
|
||||
<intAttribute key="PLAYER_WIDTH" value="550"/>
|
||||
<stringAttribute key="POST_COMPILE_ANT" value=""/>
|
||||
<stringAttribute key="PREFERRED_BROWSER" value=""/>
|
||||
<stringAttribute key="PRE_COMPILE_ANT" value=""/>
|
||||
<stringAttribute key="PROJECT_NAME" value="spine-starling-example"/>
|
||||
<stringAttribute key="PUBLISHER_ID" value=""/>
|
||||
<booleanAttribute key="START_DEBUGGER" value="true"/>
|
||||
<booleanAttribute key="START_SWF_ENABLED" value="true"/>
|
||||
<stringAttribute key="START_SWF_LOCATION" value="bin/spine-starling-example.swf"/>
|
||||
<stringAttribute key="START_SWF_WITH" value="Adobe Flash Player"/>
|
||||
<booleanAttribute key="SUPPRESS_EXCEPTION_POPUP" value="false"/>
|
||||
<booleanAttribute key="USE_PROJECT_COMPILER_ARGUMENTS" value="true"/>
|
||||
<booleanAttribute key="WAITING_DIALOG_PLUGIN" value="false"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/spine-starling-example"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
</launchConfiguration>
|
||||
@ -1,4 +0,0 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/spine/examples/TankExample.as=UTF-8
|
||||
encoding//src/spine/examples/TwoColorExample.as=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
14
spine-starling/spine-starling-example/.vscode/launch.json
vendored
Normal file
14
spine-starling/spine-starling-example/.vscode/launch.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
// Use IntelliSense to learn about possible attributes.
|
||||
// Hover to view descriptions of existing attributes.
|
||||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"type": "swf",
|
||||
"request": "launch",
|
||||
"name": "Launch Spine Starling Example",
|
||||
"preLaunchTask": "ActionScript: compile debug - asconfig.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
3
spine-starling/spine-starling-example/.vscode/settings.json
vendored
Normal file
3
spine-starling/spine-starling-example/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"as3mxml.sdk.framework": "/Applications/air-sdk"
|
||||
}
|
||||
22
spine-starling/spine-starling-example/asconfig.json
Normal file
22
spine-starling/spine-starling-example/asconfig.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"output": "bin/spine-starling-example.swf",
|
||||
"source-path": [
|
||||
"src",
|
||||
"../../spine-as3/spine-as3/src",
|
||||
"../../spine-starling/spine-starling/src"
|
||||
],
|
||||
"library-path": [
|
||||
"../../spine-starling/spine-starling/starling-2.4.swc"
|
||||
],
|
||||
"default-size": {
|
||||
"width": 550,
|
||||
"height": 500
|
||||
},
|
||||
"target-player": "32.0",
|
||||
"swf-version": 43
|
||||
},
|
||||
"files": [
|
||||
"src/spine/examples/Main.as"
|
||||
]
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
@ -1,17 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>spine-starling</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>com.powerflasher.fdt.core.FlashBuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>com.powerflasher.fdt.core.FlashNature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<AS3Classpath>
|
||||
<AS3LibraryFolder>lib</AS3LibraryFolder>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="source" useAsSharedCode="false">src</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="lib" useAsSharedCode="false">lib/spine-as3.swc</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="true" type="lib" useAsSharedCode="false">frameworks/libs/air/airglobal.swc</AS3Classpath>
|
||||
<AS3Classpath generateProblems="true" sdkBased="false" type="lib" useAsSharedCode="false">lib/starling-2.4.swc</AS3Classpath>
|
||||
</AS3Classpath>
|
||||
@ -1,21 +0,0 @@
|
||||
com.powerflasher.fdt.core.CompatiblePlayers=AIR_Debug_Launcher
|
||||
com.powerflasher.fdt.core.CompilerArguments=-static-link-runtime-shared-libraries\=true\n-target-player\={playerVersion}\n-library-path+\="{flexSDK}/frameworks/locale/en_US"\n-default-size\=550,400
|
||||
com.powerflasher.fdt.core.CompilerConstants=CONFIG\:\:AUTHOR\!"{user.name}"\nCONFIG\:\:DEBUG\!{debug}
|
||||
com.powerflasher.fdt.core.DefaultOutputFolder=bin
|
||||
com.powerflasher.fdt.core.DefaultPlayer=AIR_Debug_Launcher
|
||||
com.powerflasher.fdt.core.IncludeTestResources=false
|
||||
com.powerflasher.fdt.core.Language=AS3
|
||||
com.powerflasher.fdt.core.Manifests=
|
||||
com.powerflasher.fdt.core.PassClasspath=true
|
||||
com.powerflasher.fdt.core.PassDefines=true
|
||||
com.powerflasher.fdt.core.PassExterns=false
|
||||
com.powerflasher.fdt.core.PassMainclass=true
|
||||
com.powerflasher.fdt.core.PassManifests=true
|
||||
com.powerflasher.fdt.core.PassRsls=false
|
||||
com.powerflasher.fdt.core.PassSwcs=true
|
||||
com.powerflasher.fdt.core.PlatformType=AIR
|
||||
com.powerflasher.fdt.core.PlayerVersion=30.0
|
||||
com.powerflasher.fdt.core.ProjectTypeHint=Library AIR
|
||||
com.powerflasher.fdt.core.Runtime=AIR
|
||||
com.powerflasher.fdt.core.SdkName=Flex 4.6.0
|
||||
eclipse.preferences.version=1
|
||||
@ -1,13 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<exclude>
|
||||
<resource>SDK:frameworks/libs/air/aircore.swc</resource>
|
||||
<resource>SDK:frameworks/libs/air/airglobal.swc</resource>
|
||||
<resource>SDK:frameworks/libs/air/applicationupdater.swc</resource>
|
||||
<resource>SDK:frameworks/libs/air/applicationupdater_ui.swc</resource>
|
||||
<resource>SDK:frameworks/libs/air/servicemonitor.swc</resource>
|
||||
<resource>SDK:frameworks/libs/authoringsupport.swc</resource>
|
||||
<resource>SDK:frameworks/libs/core.swc</resource>
|
||||
<resource>SDK:frameworks/libs/osmf.swc</resource>
|
||||
<resource>SDK:frameworks/libs/textLayout.swc</resource>
|
||||
</exclude>
|
||||
|
||||
@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<launchConfiguration type="com.powerflasher.fdt.ui.CompcGroup">
|
||||
<booleanAttribute key="ADVANCED_TELEMTRY" value="false"/>
|
||||
<stringAttribute key="ARGUMENTS" value=" -target-player={playerVersion}"/>
|
||||
<listAttribute key="COMPILER_CONSTANTS"/>
|
||||
<stringAttribute key="COMPILER_TECHNOLOGY" value="Flex SDK"/>
|
||||
<booleanAttribute key="FORCE_FRESH_COMPILATION" value="false"/>
|
||||
<stringAttribute key="LAUNCHER_DEPENDENCIES" value="[Self]"/>
|
||||
<stringAttribute key="OUTPUT" value="../spine-starling-example/lib/spine-starling.swc"/>
|
||||
<booleanAttribute key="PASS_CP" value="true"/>
|
||||
<booleanAttribute key="PASS_DEFINES" value="true"/>
|
||||
<booleanAttribute key="PASS_EXTERNS" value="true"/>
|
||||
<booleanAttribute key="PASS_MANIFESTS" value="true"/>
|
||||
<booleanAttribute key="PASS_RSLS" value="false"/>
|
||||
<booleanAttribute key="PASS_SWCS" value="true"/>
|
||||
<stringAttribute key="PROJECT_NAME" value="spine-starling"/>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_PATHS">
|
||||
<listEntry value="/spine-starling"/>
|
||||
</listAttribute>
|
||||
<listAttribute key="org.eclipse.debug.core.MAPPED_RESOURCE_TYPES">
|
||||
<listEntry value="4"/>
|
||||
</listAttribute>
|
||||
</launchConfiguration>
|
||||
@ -1,9 +0,0 @@
|
||||
eclipse.preferences.version=1
|
||||
encoding//src/spine/starling/SkeletonAnimation.as=UTF-8
|
||||
encoding//src/spine/starling/SkeletonMesh.as=UTF-8
|
||||
encoding//src/spine/starling/SkeletonSprite.as=UTF-8
|
||||
encoding//src/spine/starling/StarlingAtlasAttachmentLoader.as=UTF-8
|
||||
encoding//src/spine/starling/StarlingTextureLoader.as=UTF-8
|
||||
encoding//src/spine/starling/TwoColorEffect.as=UTF-8
|
||||
encoding//src/spine/starling/TwoColorMeshStyle.as=UTF-8
|
||||
encoding/<project>=UTF-8
|
||||
3
spine-starling/spine-starling/.vscode/settings.json
vendored
Normal file
3
spine-starling/spine-starling/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"as3mxml.sdk.framework": "/Applications/air-sdk"
|
||||
}
|
||||
18
spine-starling/spine-starling/asconfig.json
Normal file
18
spine-starling/spine-starling/asconfig.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"type": "lib",
|
||||
"compilerOptions": {
|
||||
"source-path": [
|
||||
"src",
|
||||
"../../spine-as3/spine-as3/src"
|
||||
],
|
||||
"include-sources": [
|
||||
"src",
|
||||
"../../spine-as3/spine-as3/src"
|
||||
],
|
||||
"external-library-path": [
|
||||
"starling-2.4.swc"
|
||||
],
|
||||
"output": "lib/spine-starling.swc",
|
||||
"target-player": "32.0"
|
||||
}
|
||||
}
|
||||
Binary file not shown.
BIN
spine-starling/spine-starling/lib/spine-starling.swc
Normal file
BIN
spine-starling/spine-starling/lib/spine-starling.swc
Normal file
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user