Copy link to clipboard
Copied
Hi guys,
I've written a program that loads jpg's and mp3's from folders
It works fine when loading in Flash Professional on my mac, however when i upload it to a server the files won't load properly, i.e only about 30% of them will load
I've tried 3 different servers and had the same issue
Can anyone help?
Cheers
Chris
Copy link to clipboard
Copied
What code are you using to load the files?
Copy link to clipboard
Copied
in a loop:
var loader:Loader = new Loader();
addListeners(loader.contentLoaderInfo);
loader.load(new URLRequest(url));
The weird thing is it worked before I changed 3 of the pictures it worked fine. I re-edited 3 of the pictures and saved them in the same format using the same files names and it managed to break it
Copy link to clipboard
Copied
I would be suspicious of the images... they might be corrupted. You should try adding an error catching bit of code to see if/what error are occuring.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now