diff --git a/spine-starling/spine-starling/src/spine/starling/StarlingAtlasAttachmentLoader.as b/spine-starling/spine-starling/src/spine/starling/StarlingAtlasAttachmentLoader.as index 138e0bd587..7c6543381b 100644 --- a/spine-starling/spine-starling/src/spine/starling/StarlingAtlasAttachmentLoader.as +++ b/spine-starling/spine-starling/src/spine/starling/StarlingAtlasAttachmentLoader.as @@ -59,7 +59,7 @@ package spine.starling { } public function newRegionAttachment(skin : Skin, name : String, path : String) : RegionAttachment { - var texture : Texture = atlas.getTexture(path); + var texture : Texture = getTexture(path); if (texture == null) throw new Error("Region not found in Starling atlas: " + path + " (region attachment: " + name + ")"); var attachment : RegionAttachment = new RegionAttachment(name); @@ -96,7 +96,7 @@ package spine.starling { } public function newMeshAttachment(skin : Skin, name : String, path : String) : MeshAttachment { - var texture : Texture = atlas.getTexture(path); + var texture : Texture = getTexture(path); if (texture == null) throw new Error("Region not found in Starling atlas: " + path + " (mesh attachment: " + name + ")"); var rotated : Boolean = atlas.getRotation(path);