Home -> VRSmarty plugins page -> logometer.swf
This plugin is completely free for use in any context or connection.
logometer.swf
This is a plugin that is active during panorama loading, which displays progress information in a box (optional) together with one or two images (also optional). Several display options can be set, and that of course requires a lot of parameters. But you would seldom need to specify all of them.

You can also use a .swf movieclip where each frame corresponds to a percentage loaded.

The following parameters are supported:

Function:
enabledenabled=0possibility to turn the meter on/off (default 1=on)
delaydelay=5000delay (in ms) before closing box
onReadyonReady=loadPano1VRSmarty command when plugin has been initialized
onLoadedonLoaded=text2.alpha%3D1,600VRSmarty command when pano has been loaded
 
Background box:
sizesize=200x140box size
radiusradius=15box corner radius
bgColorbgColor=0xFDE018background color
borderColorborderColor=0x000000border color
 
Lower image:
imageLimageL=img/logoeniro.pnglower image path (image below meter)
imageLPosimageLPos=5:5lower image position
tweenLtweenL=1lower image is an .swf movieclip
 
Upper image:
imageUimageU=img/logoeniro.pngupper image path (image above meter)
imageUPosimageUPos=5:5upper image position
tweenUtweenU=1upper image is an .swf movieclip
 
Meter:
meterSizemeterSize=150x8meter bar size
meterPosmeterPos=9:80meter bar position
meterColormeterColor=0x0000ffmeter bar color
uncoveruncover=1meter bar uncovering background
 
Text:
textAligntextAlign=Ctext alignment: R(ight), C(enter) or L(eft)(default)
textPostextPos=9:100text position
textColortextColor=0x303030text color
fontfont=Arialtext font
fontSizefontSize=12size of text font
textLoadedtextLoaded=We have loaded %L kilobytestext for "loading progress"
textLoadFailuretextLoadFailure=loading failedtext 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:
  1. The tweens must run between frames 1 - 100.
  2. 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:
%Lkilobytes downloaded
%Tkilobytes total
%Ppercentage 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: