[as3] Fixed compiler warning.

This commit is contained in:
Nathan Sweet 2021-06-29 13:50:06 -04:00
parent b8bf2a9bbb
commit 70e86e23a1
6 changed files with 39 additions and 40 deletions

View File

@ -1,11 +1,11 @@
{ {
"version": "0.2.0", "version": "0.2.0",
"configurations": [ "configurations": [
{ {
"type": "swf", "type": "swf",
"request": "launch", "request": "launch",
"name": "Launch spine-as3-example", "name": "Launch spine-as3-example",
"preLaunchTask": "Compile debug" "preLaunchTask": "Compile debug"
} }
] ]
} }

View File

@ -1,10 +1,10 @@
{ {
"version": "2.0.0", "version": "2.0.0",
"tasks": [ "tasks": [
{ {
"label": "Compile debug", "label": "Compile debug",
"type": "actionscript", "type": "actionscript",
"debug": true "debug": true
} }
] ]
} }

View File

@ -1,17 +1,17 @@
{ {
"compilerOptions": { "compilerOptions": {
"output": "bin/spine-as3-example.swf", "output": "bin/spine-as3-example.swf",
"source-path": [ "source-path": [
"src", "src",
"../spine-as3/src" "../spine-as3/src"
], ],
"default-size": { "default-size": {
"width": 550, "width": 550,
"height": 500 "height": 500
}, },
"target-player": "32.0", "target-player": "32.0",
"swf-version": 43 "swf-version": 43
}, },
"files": [ "files": [
"src/spine/examples/Main.as" "src/spine/examples/Main.as"
] ]

View File

@ -7,7 +7,7 @@
"include-sources": [ "include-sources": [
"src" "src"
], ],
"output": "../spine-as3/lib/spine-as3.swc", "output": "../spine-as3/lib/spine-as3.swc",
"target-player": "32.0" "target-player": "32.0"
} }
} }

View File

@ -618,7 +618,6 @@ package spine.animation {
animationsChanged = false; animationsChanged = false;
propertyIDs.clear(); propertyIDs.clear();
var tracks = this.tracks;
for (var i : int = 0, n : int = tracks.length; i < n; i++) { for (var i : int = 0, n : int = tracks.length; i < n; i++) {
var entry : TrackEntry = tracks[i]; var entry : TrackEntry = tracks[i];
if (!entry) continue; if (!entry) continue;

View File

@ -6,13 +6,13 @@
"../../spine-as3/spine-as3/src" "../../spine-as3/spine-as3/src"
], ],
"include-sources": [ "include-sources": [
"src", "src",
"../../spine-as3/spine-as3/src" "../../spine-as3/spine-as3/src"
], ],
"external-library-path": [ "external-library-path": [
"starling-2.4.swc" "starling-2.4.swc"
], ],
"output": "lib/spine-starling.swc", "output": "lib/spine-starling.swc",
"target-player": "32.0" "target-player": "32.0"
} }
} }