View Full Version : Questions about Preloader and loader bar
t4e192
12-09-2008, 12:10 AM
Questions about Preloader and loader bar
Hi all,
We are currently working on an online hotel ordering system.
However, we are having problem writing the preloader part of the system.
How can we modify the Splash to support other kinds of preload sequencing pictures with BytesLoad and etc.?
Attached is the kind of style, we are targeting at.
When it's ready, it could go onto the ShowCase here.
We are working on lps-4.0.12
Jemmy Lai
Dotking International Ltd.
20081209
rcyeager
12-09-2008, 07:56 AM
Use the <splash> tag to define a view that displays its frames in proportion to the amount of the app downloaded to the browser:
<splash>
<view center="true" name="splash_anim" ratio="1"
resource="myloader.swf"/>
</splash>
http://www.openlaszlo.org/lps4/docs/reference/tag.splash-view.html
Robert Yeager
http://www.qrowd.com
http://www.cooqy.com
brknindexfinger
04-30-2009, 10:08 AM
Hi there, rcyeager. I'm trying to use the code you pasted into this thread.
<splash>
<view center="true" name="splash_anim" ratio="0.5"
resource="loader.lzx.swf8.swf"/>
</splash>
When I have ratio="1", nothing loads. No views become visible, even in the developer's console.
When I have ratio="0.5", then initial views do eventually load in the dev console, but I get this error in the debugger:
<a title="#2">WARNING: Invalid delegate: <a title="#0">view name: splash_anim</a>.noteCreated => <a title="#1">«Function»</a> (must accept one argument)</a>
In neither case does the loader actually appear when the app is loading on the Web.
I thought that perhaps it was because creating a loader swf in laszlo would not give me explicit frames on a timeline like an old-fashioned swf published from Flash using a motion tween on the timeline. But I've tried that too and neither the loader swfs from Flash nor loader swfs created in Laszlo work.
The documentation is so straightforward, I guess I just don't understand what I'm missing. Is there some special procedure you have to follow to make the loading swf? Where can I get more information?
Thanks for any assistance,
brknindexfinger
brknindexfinger
05-01-2009, 02:24 AM
I figured out the problem. Laszlo swfs have no frames by default, so the swf has to be made with Flash, an old-fashioned Flash file with lots of frames and a shape tween or whatever to make a loading bar. Then the Flash file has to be published as an extremely primitive format like Flash 5.
Damn, I wish I didn't have to use Flash to use Laszlo!
~brk
kmeixner
05-01-2009, 07:15 AM
I figured out the problem. Laszlo swfs have no frames by default, so the swf has to be made with Flash, an old-fashioned Flash file with lots of frames and a shape tween or whatever to make a loading bar. Then the Flash file has to be published as an extremely primitive format like Flash 5.
Damn, I wish I didn't have to use Flash to use Laszlo!
~brk
Aaaah, so that's the trick, never been able to get it to work myself, at least not with an animated image...
Kevin
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.