"calvaryftl" wrote:
Oh, ok. Well there was only one loop running, but when I ran the app, nothing showed in the debugger. I had it set to print whatever message it received, if of type "roSystemLogEvent". Any idea why nothing would show?
I had it in my code that displays a poster screen. The same section that is not displaying the images. That is the correct spot, right? I assume it is because the poster screen should be the one making the http calls for the images.
if (request.AsyncGetToString())
while (true)
msg = wait(0, port)
if (type(msg) = "roUrlEvent")
code = msg.GetResponseCode()
if (code = 200)
array = CreateObject("roArray",10,true)
json = ParseJSON(msg.GetString())
for each item in json.Items
info = {
ShortDescriptionLine1: item.name
address: item.address
phone: item.phone
times: item.times
SDPosterUrl: item.SDPosterUrl
HDPosterUrl: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/web.png"
}
array.push(info)
end for
return array
endif
else if (event = invalid)
request.AsyncCancel()
endif
end while
endif
screen = CreateObject("roPosterScreen")
screen.SetListStyle("arced-landscape")
screen.SetContentList([
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/worship.png" }
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/web.png" }
{ hdPosterURL: "http://media.calvaryftl.org/api/ROKU/images/campusposters/poster/hd/sandalfoot.jpg" }
])
screen.Show()