Controls the presentation while the application is loading.
The <splash> tag controls the presentation while
the application is loading.
If the <splash> element is present but is empty, a
progress bar is displayed while the application is loading. For
example:
The <splash> element may contain
"splash view" elements to define the position and
behavior of resources that are displayed during the load process. However,
these "splash view" elements, although they are declared with a "view" tag, have a limited feature set. That is to say, when you place a view tag inside a <splash> element, you are not getting the same object that you do when you place a <view> tag elsewhere on the canvas.
For example, the following program positions an image on the canvas during the "splash" loading portion of the program's execution and removes it once the application has loaded. The examnple below executes too quickly to be demonsrate the splash view; try it in a larger application to see how it works.
<canvas height="100">
<splash>
<view resource="images/logo.png"/>
</splash>
</canvas>
You can position more than one image by specifying its coordinates. The persistent attribute on <splash> tag causes the "splash" views contained within the spash element to remain on the canvas once the
load process is complete.
<canvas height="100">
<splash persistent="true">
<view x="5" resource="images/logo.png" />
<view x="50" resource="images/logo.png" />
<view x="150" resource="images/logo.png" />
</splash>
</canvas>
Also see the contacts example.
| Attributes | |||||
| Name | Usage | Type (Tag) | Type (JS) | Default | Category |
| persistent | Tag only | boolean | false | final | |
|
If true, the splash views remain on the canvas after the preload is complete. |
|||||
|
|
|||||
Copyright © 2002-2007 Laszlo Systems, Inc. All Rights Reserved. Unauthorized use, duplication or distribution is strictly prohibited. This is the proprietary information of Laszlo Systems, Inc. Use is subject to license terms.