Wolf hat mir einen einfacheren Weg gezeigt:
$this->cacheCode('[php]','<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.16" title="Virtuelle Tour Weihnachtsmarkt 2013" onstart="startup()";logkey="true" showerrors="true">
<include url="skin/vtourskin_.xml"></include>
<autorotate enabled="true" waittime="3.0" accel="1.5" speed="-3" horizon="0"></autorotate>
<action name="on">
set(plugin[roton].visible, true);
set(plugin[rotoff].visible, false);
switch(autorotate.enabled)
</action>
<action name="off">
set(plugin[rotoff].visible, true);
set(plugin[roton].visible, false);
switch(autorotate.enabled)
</action>
<!-- set skin settings: bingmaps? gyro? thumbnail controlling? tooltips? -->
<skin_settings bingmaps="false" bingmaps_key="" bingmaps_zoombuttons="false" gyro="true" thumbs_width="120" thumbs_height="80" thumbs_padding="10" thumbs_crop="0|40|240|160" thumbs_opened="false" thumbs_text="false" thumbs_dragging="true" thumbs_onhoverscrolling="false" thumbs_scrollbuttons="false" thumbs_scrollindicator="false" tooltips_thumbs="false" tooltips_hotspots="true" tooltips_mapspots="false" controlbar_offset="20"></skin_settings>
<!-- set optional skin logo url -->
<layer name="skin_logo" url="" scale="0.25" opened_onclick="openurl('...',_blank);"></layer>
<hotspot name="nadirlogo" keep="true" url="skin/logo_.png" ath="0" atv="90" distorted="true" scale="1.0" rotate="15.0" enabled="false"></hotspot>
<events name="nadirlogo_automatic_rotation" keep="true" onviewchange="copy(hotspot[nadirlogo].rotate, view.hlookat);"></events>
<!-- <plugin name="editor" url="%SWFPATH%/plugins/editor.swf" keep="true"></plugin>
<plugin name="options" url="%SWFPATH%/plugins/options.swf" keep="true" view="true" display="true" control="false" image="true" onloaded="open();"></plugin>
<plugin name="editor" url="%SWFPATH%/plugins/editor.swf" keep="true"></plugin>
<plugin name="options" url="%SWFPATH%/plugins/options.swf" keep="true" view="true" display="true" control="false" image="true" onloaded="open();"></plugin>-->
<action name="startup">
set(gBlendZeit,2.5);
loadscene("scene_01_IMG_9607_Panorama_equi",null,MERGE);
wait(load); <!-- erst das Pano laden -->
<!-- hier koennte man eine weitere Pause einfuegen. Z.B. wait(2); -->
showIntroimage();
delayedcall(10, hideIntroimage());
</action>
<action name="hideIntroimage">
tween(plugin[introimage].alpha, 0.0, get(gBlendZeit), default);
wait(get(gBlendZeit)); <!-- das Ausblenden abwarten -->
set(plugin[introimage].visible,false); <!-- das durchsichtige Bild unsichtbar machen. Sonst faengt es die MouseEvents ab -->
</action>
<action name="showIntroimage">
set(plugin[introImage].alpha,0); <!-- nur zur Sicherheit. Alpha sollte von hideIntroimage bereits auf 0 gesetzt worden sein. -->
set(plugin[introimage].visible,true); <!-- das durchsichtige Bild sichtbar machen. Es ist danach vorhanden, aber immer noch durchsichtig -->
tween(plugin[introimage].alpha, 1.0, get(gBlendZeit), default); <!-- einblenden. Die Dauer wurde in startup mit gBlendZeit definiert -->
</action>
<scene name="scene_01_IMG_9607_Panorama_equi" title="01_Eingang" onstart=""thumburl="panos/01_IMG_9607_Panorama_equi.tiles/thumb.jpg" lat="" lng="" heading="">
<!-- Titelbild, das man wegklicken kann, blendet nach einigen Sekunden selbst aus
-->
<plugin name="introimage" url="titel_weihnachtsmarkt.png" align="center" alpha="0.0" visible="false" zorder="2" onclick="hideintroimage();" />
<view hlookat="48" vlookat="0" fovtype="MFOV" fov="120" maxpixelzoom="2.0" fovmin="70" fovmax="140" limitview="auto"></view>
<preview url="panos/01_IMG_9607_Panorama_equi.tiles/preview.jpg"></preview>
<image type="CUBE" multires="true" tilesize="512" progressive="false">
<level tiledimagewidth="3426" tiledimageheight="3426">
<cube url="panos/01_IMG_9607_Panorama_equi.tiles/l3_%s_%v_%h.jpg"></cube>
</level>
<level tiledimagewidth="1713" tiledimageheight="1713">
<cube url="panos/01_IMG_9607_Panorama_equi.tiles/l2_%s_%v_%h.jpg"></cube>
</level>
<level tiledimagewidth="857" tiledimageheight="857">
<cube url="panos/01_IMG_9607_Panorama_equi.tiles/l1_%s_%v_%h.jpg"></cube>
</level>
<mobile>
<cube url="panos/01_IMG_9607_Panorama_equi.tiles/mobile_%s.jpg"></cube>
</mobile>
</image>
<!-- place your scene hotspots here -->
<hotspot name="spot1" style="skin_hotspotstyle" ath="39.320" atv="23.079" linkedscene="scene_02_img_9586_panorama_equi"></hotspot>
<hotspot name="spot2" style="skin_hotspotstyle" ath="-159.924" atv="8.905" linkedscene="scene_13_img_9814_panorama_equi"></hotspot>
</scene>
....
')
Ich benötige nun nicht mehr die Krücke des zweiten "scene"-Abschnitts mit neuem Namen.
Hier noch mal der Thread:
http://www.panorama-community.de/wbb/ind…80739#post80739
Grüße
Harald