On Apr 11, 2009, at 4:11 PM, Hugh Sasse wrote:
On Sat, 11 Apr 2009, Simon Kröger wrote:
Hi fellow adventurers,
my journey came to a sudden halt as i tried to do the following:
-------------------------------------------------
Shoes.app do
fill "http://shoooes.net/images/nks-kidnap.png"
To the best of my knowledge, you can't use URLs to refer to images
like that; I think you need to use the download command to get it
and put it somewhere, first....
You can in an image() just fine, and the image will appear when it
loads, but if you do that in a fill(), it's not smart enough to deal
with the fact that it takes time to load, and it will freak out with
that message.
Interestingly, the original code works fine if and only if you happen
to have that image in your .shoes cache.
E.g. if you run:
Shoes.app { image "http://shoooes.net/images/nks-kidnap.png" }
then it will put that in your .shoes cache.
At that point, you can run Simon's code and it works fine.