"squirreltown" wrote:
Ok so whats the format for doing multiple downloads with the same transfer object? The function below gets the first graphic but not the second.
AT = CreateObject("roUrlTransfer")
aport = CreateObject("roMessagePort")
AT.setmessageport(aport)
AT.SetUrl("http://www.xxxx.com/roku/url/albumcover_hd.png")
AT.AsyncGetToFile("tmp:/albumcover_hd.png")
AT.SetUrl("http://www.xxxx.com/roku/url/albumcover2_hd.png")
AT.AsyncGetToFile("tmp:/albumcover2_hd.png")
I tried it with commas in between setURL( x,x,x) but no-go.
For asynchronous, you need to create new components for each like you were in your original. For synchronous, you can reuse the same component, because the call will block until the download completes.
My Channels: http://roku.permanence.com - Twitter: @TheEndlessDev
Instant Watch Browser (NetflixIWB), Aquarium Screensaver (AQUARIUM), Clever Clocks Screensaver (CLEVERCLOCKS), iTunes Podcasts (ITPC), My Channels (MYCHANNELS)