The following parameters are supported:
| Function: |
| enabled | enabled=0 | possibility to turn the meter on/off (default 1=on) |
| delay | delay=5000 | delay (in ms) before closing box |
| onReady | onReady=loadPano1 | VRSmarty command when plugin has been initialized |
| onLoaded | onLoaded=text2.alpha%3D1,600 | VRSmarty command when pano has been loaded |
| | | |
| Background box: |
| size | size=200x140 | box size |
| radius | radius=15 | box corner radius |
| bgColor | bgColor=0xFDE018 | background color |
| borderColor | borderColor=0x000000 | border color |
| | | |
| Lower image: | | |
| imageL | imageL=img/logoeniro.png | lower image path (image below meter) |
| imageLPos | imageLPos=5:5 | lower image position |
| tweenL | tweenL=1 | lower image is an .swf movieclip |
| | | |
| Upper image: | | |
| imageU | imageU=img/logoeniro.png | upper image path (image above meter) |
| imageUPos | imageUPos=5:5 | upper image position |
| tweenU | tweenU=1 | upper image is an .swf movieclip |
| | | |
| Meter: | | |
| meterSize | meterSize=150x8 | meter bar size |
| meterPos | meterPos=9:80 | meter bar position |
| meterColor | meterColor=0x0000ff | meter bar color |
| uncover | uncover=1 | meter bar uncovering background |
| | | |
| Text: | | |
| textAlign | textAlign=C | text alignment: R(ight), C(enter) or L(eft)(default) |
| textPos | textPos=9:100 | text position |
| textColor | textColor=0x303030 | text color |
| font | font=Arial | text font |
| fontSize | fontSize=12 | size of text font |
| textLoaded | textLoaded=We have loaded %L kilobytes | text for "loading progress" |
| textLoadFailure | textLoadFailure=loading failed | text for "loading failure" |
NOTES:
If all the different components are used their relative Z-levels would be:
4 upper image (highest)
3 progress text
2 progress meter
1 lower image
0 background box and border (lowest)
The logometer is never visible during preview loading - only when loading the main pano.
The
uncover parameter:
If not used, the progress meter works as usual - growing from left to right.
If the parameter is set to uncover="1", the progress meter is drawn in full length
from the beginning and used as a mask to cover the background. When loading starts,
the mask will gradually shrink to the right, revealing the background.
The
tweenL and
tweenU parameters:
The images used can also be Flash .swf movieclip files. If they contain tweens that you want to
synchronize with the pano loading, they have to meet the following requirements:
- The tweens must run between frames 1 - 100.
- Frame 1 must contain an ActionScript stop(); command to prevent the tweens from
playing automatically.
In the
textLoaded parameter you can use the following placeholders:
| %L | kilobytes downloaded |
| %T | kilobytes total |
| %P | percentage downloaded |
The
onLoaded parameter:
With this parameter you can excute VRSmarty commands when the pano has been loaded. If you
are using the delay parameter, which is used to keep the meter (logo) visible for a while
after loading, the execution of these commands will also be delayed.
Example VRSmarty xml file:
<logometer
size="207x125"
alpha="1"
radius="15"
bgColor="0xFDE018"
borderColor="0x000000"
imageL="img/logoeniro.png"
imageLPos="9:9"
imageU="img/enirobar2.png"
imageUPos="9:79"
meterPos="9:80"
meterSize="187x15"
meterColor="0x0000ff"
textPos="9:100"
textColor="0x303030"
textLoaded="We have loaded %P%"
textLoadFailure="loading failed"
textParsing="parsing"
font="Verdana"
fontsize="11"
delay="5"
onReady="goCrane()"
onLoaded="showMsg()"
/>
Version history: