Hi,
I've exported the atlas package for a small animation and I would like to test it in the webplayer.
I've followed the instruction of the page http://esotericsoftware.com/spine-player#Initializing-the-player but I got the error: assets could not be loaded. But the path for the assets are correct (I tried with relative and absolute path, the error is the same, I tried with testing the file in local and on my web site).
The test.html page is in a folder and the aml.json, aml.png and aml.atlas are into a subfolder named "SpineAssets".
What could be the problem? Is there a problem with my animation exportation, or with my animation in Spine or with the html code configuration?
Please find below the html Code:
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title></title>
<link rel="stylesheet" href="http://esotericsoftware.com/files/spine-player/3.7/spine-player.css" />
<script src="http://esotericsoftware.com/files/spine-player/3.7/spine-player.js" ></script>
</head>
<body>
<div id="player-container" style="width: 640px; height: 480px;"></div>
<script>
new spine.SpinePlayer("player-container", {
jsonUrl: "/SpineAssets/aml.json",
atlasUrl: "/SpineAssets/aml.atlas",
});
</script>
</body>
</html>
Thank you a lot for your help!
Nevermind... I found the problem, on my server the .atlas are not recognized.. so for now, I changed the extension of the .atlas by .txt and it works.