PDA

View Full Version : lazy laszlo(.swf) loading?


twashing
08-20-2003, 12:26 PM
Right now in a laszlo file, classes from included libraries are compiled into the requested laszlo file (shockwave file), then sent to the client.

* Is there a way to send pieces of shockwave files to the client? I ask because some of our pages are quite big and we are building a UI for a live system. Also, this can definitely be done in flash.

I've looked under 1. the release notes and 2. configuration files - WEB-INF/lps/config/lps.properties is the only interesting one, and it has nothing. I didn't see that this was supported in laszlo however.

Has anyone else tried this before?

antun
08-20-2003, 12:51 PM
Are you asking if you can load a .swf file into a Laszlo app at runtime? No problem at all. You can say:


<view src="http:foo.swf" />


... but calling script within it is unsupported. If it's an animation, you can start and stop it, and you can find out when it finished playing.

-Antun

twashing
08-20-2003, 01:11 PM
I was thinking more along the lines of having .lzx files pulled in at runtime. As far as I can tell, all .lzx files you want to use at runtime have to be pulled in at compile-time with the <include/> tag.

Also, are .lzx files cached as .swf files? That's where my original question came from. And where are .lzx files cached - I didn't see them in the configured location, "lps-*cache".

-- Tim

antun
08-20-2003, 01:39 PM
Ah - I see what you mean. No, .lzx files can't be loaded at runtime. People have asked about that before, so it's on the table for discussion. My best suggestion if you've got a very heavy app is to see if any resources can be loaded later.

Where does the weight from your app come from? Is it from resources?

As for the cache - it's cached at the servlet container level (in Tomcat that's a directory called "work"), and yes they get compiled to .swf bytecode.

Can you explain in a little more detail what you're trying to do?

-Antun