Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PNG source path

Participant ,
Jan 14, 2020 Jan 14, 2020

Hello,

When I create a HTM5/Canvas project with Adobe animate. After publishing or testing it pushes out a html file and a javascript file with the source path with png. When I store it on our webserve it is telling me that I don't have access to the png file. So I open up the JS file with Dreamweaver. 

 

sourcepath.PNG

and have to change the path manually to ../path/path/image.png for example I don't want to manually have to change path everytime we create html5/canvas project is there a way to tell abov

TOPICS
How to , Other
257
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jan 14, 2020 Jan 14, 2020

Animate attempts to load its resource files relative to the location of the document. So if it works when tested locally, but not when loaded on a server, something's getting screwed up in the transfer process.

 

Hmm, I just noticed that when using texture atlases, Animate creates filenames with spaces in them. I wonder if that causes problems for some servers. What if you set image assets to export as image assets?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 15, 2020 Jan 15, 2020

Hello,

I will see if that setting will work but yeah I don't know why the path is getting messed up. 

 

Thank you,

Charles 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Jan 15, 2020 Jan 15, 2020
LATEST

Hello,

 

Yeah I have it set to export as image assets.That doesn't fix my problem having to open up the JS file and manually changing source path.

 

Thank you,

 

Charles 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines