Copy link to clipboard
Copied
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!
upload your files to a file server and post the url to the embedding html.
Copy link to clipboard
Copied
your path should be relative to the html file, not the swf.
Copy link to clipboard
Copied
Thanks for the answer.
But both the SWF and the HTML files are located within the same folder.
Copy link to clipboard
Copied
post a link to your embedding url.
Copy link to clipboard
Copied
Hi there! I made an image so it's better to understand.
All files are offline in my hard drive. I need to send the .html for my client for approval.
And it's funny because I'm loading external MP3 files and they run normally.
Copy link to clipboard
Copied
try:
"./data/quiz.json"
Copy link to clipboard
Copied
It didn't work.
I don't understand how it can load the mp3 files but it can't load the json files.
Copy link to clipboard
Copied
Somebody else?
I really need to solve this ASAP.
Copy link to clipboard
Copied
what makes you think it's not loading?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
upload your files to a file server and post the url to the embedding html.
Copy link to clipboard
Copied
That's it!
When I tried to run the .html from an online server, everything worked!
Thanks a lot!!!
Copy link to clipboard
Copied
you're welcome.