This is what I have right now. I need some help figuring out why it hangs the app when it tries to download the first file:
[lua]local allDone = false
local isAvailable = true
local count = 1
local listener = function(event)
if (event.isError) then
print("Unable to download " … event.response)
else
print("Successfully downloaded " … event.response)
isAvailable = true
if (count == #files) then
allDone = true
else
count = count + 1
end
end
end
while (not allDone) do
local filename = files[count]
if (isAvailable) then
print("Downloading " … filename)
isAvailable = false
network.download(url … filename, “GET”, listener, filename)
end
end[/lua] [import]uid: 71024 topic_id: 23432 reply_id: 94550[/import]