Hey again, Klaus
After a feeeew tests it seems that the onloadcomplete-tag really loads the whole SWF-File before it triggers the event. I´ve got a few tours which sizes from 3 to 10 MB and every tour is buld the same way with the same loading-order inside the SWF-File:
tour.xml <<--main xml with scenes etc.
audio.xml <<--just a few standard sound-actions
soundinterface.swf
preview01.jpg <<--lowres-version of the first pano (about 10KB)
pano01.jpg <<--flat highres-version of the first pano (about 1MB)
and then comes the rest like interface-graphics, one or two SWF-animations etc.
And krpano always loads the full SWF before the first pano starts, which I checked with a monitoring-software.
Here´s the basic code I use to start the tour.....
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
<krpano version="1.0.8" onstart="">
<include url="audio.xml" keep="true" />
<display details="22"
tessmode="auto"
movequality="HIGH"
stillquality="HIGH"
flash10="on"
movequality10="HIGH"
stillquality10="BEST"
stilltime="0.1"
/>
<!-- Auto-Rotation -->
<autorotate enabled="true"
waittime="3.0"
speed="3.0"
tofov="80"
/>
<!-- Loading Info -->
<progress showwait="loopings(0xFFFFFF,15,15,0,0,0x092a5e,1)"
showload="bar(center,200,5,0,30,shaded,0x000000,0x092a5e,0x000000,0xffffff,1,0x000000,0)"
showreloads="false"
/>
<!-- GLOBAL EVENTS -->
<!-- Fullscreen -->
<events onenterfullscreen="action(enterfs)"
onexitfullscreen="action(leavefs)"
onloadcomplete="action(hide_progress)"
/>
<action name="hide_progress">
set(progress.showwait,none);
set(progress.showload,none);
</action>
<!-- Load first scene-->
<action name="startup">
loadscene(get(scene[0].name), null, MERGE);
</action>
<!-- Startscene -->
<scene name="entre_once" title="00" onstart="action(hide_mainbar);" >
<events name="startscene" onloadcomplete="action(camview_entre)"/>
<include url="interface.xml" keep="true" />
<view hlookat="-13" vlookat="0" fov="43.5" maxpixelzoom="2.0" limitview="auto" />
<preview url="panos/entre/preview01.jpg" />
<image type="SPHERE" hfov="120.00" vfov="43.51">
<sphere url="panos/entre/pano01.jpg" />
</image>
|
Do you have any idea how I could manage it to start the first scene-action "action(camview_entre)"
after the preview and pano is loaded, but before the rest of the SWF-File is loaded? Because right now it takes about 1 minute to start the tour with a slower connection (128kbit/s), because the whole 8mb are loaded.
Thanks and best regards
Nupsi