Browse Source

Fixed attachAll.

NathanSweet 12 years ago
parent
commit
fa0267e9e2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      spine-as3/spine-as3/src/spine/Skin.as

+ 1 - 1
spine-as3/spine-as3/src/spine/Skin.as

@@ -33,7 +33,7 @@ public class Skin {
 
 
 	/** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
 	/** Attach each attachment in this skin if the corresponding attachment in the old skin is currently attached. */
 	public function attachAll (skeleton:Skeleton, oldSkin:Skin) : void {
 	public function attachAll (skeleton:Skeleton, oldSkin:Skin) : void {
-		for each (var key:String in oldSkin.attachments) {
+		for (var key:String in oldSkin.attachments) {
 			var colon:int = key.indexOf(":");
 			var colon:int = key.indexOf(":");
 			var slotIndex:int = parseInt(key.substring(0, colon));
 			var slotIndex:int = parseInt(key.substring(0, colon));
 			var name:String = key.substring(colon + 1);
 			var name:String = key.substring(colon + 1);