Fixed AS3 colors.

This commit is contained in:
NathanSweet 2013-06-05 12:52:35 +02:00
parent af67a799d9
commit c03860383c

View File

@ -246,7 +246,7 @@ public class SkeletonJson {
static private function toColor (hexString:String, colorIndex:int) : Number {
if (hexString.length != 8)
throw new ArgumentError("Color hexidecimal length must be 8, recieved: " + hexString);
return parseInt(hexString.substring(colorIndex * 2, 2), 16) / 255;
return parseInt(hexString.substring(colorIndex * 2, colorIndex * 2 + 2), 16) / 255;
}
}