Phil, My view code looks very similar to
<view name="photo" resource="http://www.yahoo.com/photo.jpg" /> The images will be served from another website and hence I will not know about the images during compile time. I will know only the url before hand. Please check out the LZPIX demo at http://www.openlaszlo.org/demos#LZPIX My code is very similar to that. Srini Raja On 7/24/07 6:51 PM, "Phil Wallach" <[EMAIL PROTECTED]> wrote: > Srini, > > You need to place the images with your source and use > > <view resource="filename.jpg" ... /> > > This will compile the resource into the SWF file. > > Unfortunately, this also makes the SWF larger (and therefore slower) but > still would be better than runtime loading. > > You should also look up the resource tag. > > Without knowing what you are doing now, I cannot be more specific. > > HTH > Phil > > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Srini Raja > Sent: Wednesday, 25 July 2007 10:47 AM > To: [email protected] > Subject: [Laszlo-user] Runtime resource loading > > I have a few views which have runtime resources like images which are used > for background of the view. > > Is there a way to pre-load images that are set as resource as my view looks > empty until the resources area loaded. > > You can check out the LZPIX demo app where it goes to flickr to load the > images and the images are getting loaded one after another. I want to avoid > that and preload the images. Is there a way to do that? > > Srini Raja >
