Thanks in advance for any help, bit of a newb here.
I have been able to successfully pull a static image from a remote server and load it into my app, however the next step is to randomly pull the image.
Again I have been able to do this locally but am lost as to how to include the randomization in the url. Below is what I’ve used to successfully pull 2.png and load it (obviously with additional networking code.
network.download( "http://mydomain.com/2.png", "GET", networkListener, "2.png", system.TemporaryDirectory )
Now I know this isnt right but thinking something like this to pull 1 or 10 possible images and save to temp dirct. as 2.png: Note: my attempt in the url
local r = math.random ( 1, 10 )
network.download( "http://mydomain.com/"'r..'"2.png", "GET", networkListener, "2.png", system.TemporaryDirectory )
Any help is greatly appreciated.
[import]uid: 81020 topic_id: 13564 reply_id: 313564[/import]