"brocker" wrote:
Hi all,
What is the proper syntax for calling a image file that is not hosted within the project? I know in the example projects there are images in folders, but if I want to link to one that's hosted at BrightCove, what would be the proper way to do that?
ABBREVIATED EXAMPLE
Sub initTheme()
app = CreateObject("roAppManager")
theme = CreateObject("roAssociativeArray")
theme.OverhangSliceSD = "pkg:/images/Overhang_BackgroundSlice_Blue_SD43.png" '<<==NORMAL WAY TO SET IMAGES
theme.OverhangLogoSD = <WHAT URL FORMATTING GOES HERE??>
app.SetTheme(theme)
End Sub
I tried several different combinations and they all didn't seem to work.
Thanks
Bud
Some good advice from the other posters, and here's some example code
http = CreateObject("roUrlTransfer")
http.SetPort(CreateObject("roMessagePort"))
http.SetUrl("http://yourserver.com/yourpath/yourimage.png")
http.GetToFile("tmp:/yourimage.png")