I am requesting 10 images with the texturemanager. the ID's are stored and then compared with the downloads to assign the right name for the bitmap.
What I'm getting back though is only 5 of the 10, something like 1, 2, 3, 4, 10 or 1, 3, 4, 2, 10 or 3, 1, 2, 4, 10. Always get the first and last request but never anything between 5-9.
What Am I missing?
Thanks
for i = 0 to 9
requestinfo = CreateObject("roAssociativeArray")
requestpic = CreateObject("roTextureRequest" , "http://www.xxxx.com/roku/screensaverlite/"+motionlist[i].GetName())
m.texmgr.RequestTexture(requestpic)
requestinfo.name = motionlist[i].GetName()
requestinfo.ID = requestpic.GetID()
request.Push(requestinfo)
end for
while true
msg= m.texport.getmessage()
if type(msg)="roTextureRequestEvent" then
if msg.GetState() = 3
for x = 0 to 9
if request[x].ID = msg.GetID()
m.motionbit[x] = msg.GetBitmap()
total = total+1
exit for
end if
end for
end if
end if
if total = 9
exit while
end if
end while
Kinetics Screensavers