Skip to main content
Known Participant
November 24, 2016
Answered

Embedded SWF doesn't load local json

  • November 24, 2016
  • 12 replies
  • 1118 views

Hi there!

I have a SWF file that reads data from a JSON file located in a child folder called 'data'.

Everything works fine when I run the SWF from within Animate IDE or when I run the exported SWF.

But when the SWF is running from the HTML created by Animate itself, the SWF isn't able to read any data from the JSON file.

Does anyone know how to fix it?

Thanks!

This topic is closed to new replies. Start a new post to keep the conversation going.
Correct answer kglad

upload your files to a file server and post the url to the embedding html.

12 replies

Known Participant
November 25, 2016

That's it!

When I tried to run the .html from an online server, everything worked!

Thanks a lot!!!

kglad
Community Expert
Community Expert
November 26, 2016

you're welcome.

Known Participant
November 25, 2016

Because there's a quiz game that doesn't show the questions when I run the SWF embbed but when I run the SWF alone the quiz works normally.

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
November 25, 2016

upload your files to a file server and post the url to the embedding html.

Known Participant
November 25, 2016

Somebody else?

I really need to solve this ASAP.

kglad
Community Expert
Community Expert
November 25, 2016

what makes you think it's not loading?

kglad
Community Expert
Community Expert
November 24, 2016

your path should be relative to the html file, not the swf.

Known Participant
November 24, 2016

Thanks for the answer.

But both the SWF and the HTML files are located within the same folder.

kglad
Community Expert
Community Expert
November 24, 2016

post a link to your embedding url.