Hallo zusammen,
bei meiner Tour habe ich einen Button, mit dem ich die Autorotation ein- und ausschalten kann. Beim Laden der Tour ist sie standardmäßig aktiviert.
Das Problem dabei - wenn ich mit dem Button "rotation" die Autorotation deaktiviere, dann aber mit der Maus über einen Hotspot gehe und diesen wieder verlasse, dann wird durch den "onout"-Befehl die Autorotation wieder aktiviert.
Da ich viele verschiedene Hotspots habe würde ich gerne mit der Aktion "stoprotation" eine Funktion aktivieren, die mir alle "onout"-Eigentschaften ALLER Hotspots der Tour so modifiziert, dass die Autorotation deaktiviert ist.
Wenn ich per Button die Autorotation wieder einschalte, dann sollen die onout-Eigenschaften wieder ganz normal sein.
Ich hab das schon mit "set" und "switch" versucht aber entweder es hat nicht funkitoniert oder beim Start kam die Fehleranzeige dass die xml nicht korrekt sei.
Kann mir bitte jemand den entscheidenden Tip geben?
Danke und ein schönes WE
Gruß
Matthias
<?xml version="1.0" encoding="UTF-8"?>
<krpano version="1.0.8" onstart="loadscene(Bruecke,null,MERGE); set(autorotate.enabled,false); action(loadmap); action(Buttons_verzoegert_starten);" logkey="false">
.
.
.
<autorotate enabled ="true"
waittime="3.0"
accel ="1.5"
speed ="-15"
horizon ="0"
tofov ="NaN"
/>
.
.
.
<textstyle name="buttonstyle" font="Arial" fontsize="10" border="false" background="false" textcolor="0xFFFFFF" effect="glow(0x000000,0.7,4,2);dropshadow(2,45,0x000000,3,1);" />
<plugin name="left" align="bottom" x="-65" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop= "0|0|40|40" onovercrop= "0|40|40|40" ondowncrop= "0|80|40|40" blendmode="screen" ondown="set(movevectorx,-1);" onup="set(movevectorx,0);" />
<plugin name="right" align="bottom" x="-35" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop= "40|0|40|40" onovercrop= "40|40|40|40" ondowncrop= "40|80|40|40" blendmode="screen" ondown="set(movevectorx,+1);" onup="set(movevectorx,0);" />
<plugin name="up" align="bottom" x="-5" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop= "80|0|40|40" onovercrop= "80|40|40|40" ondowncrop= "80|80|40|40" blendmode="screen" ondown="set(movevectory,-1);" onup="set(movevectory,0);" />
<plugin name="down" align="bottom" x="+25" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop="120|0|40|40" onovercrop="120|40|40|40" ondowncrop="120|80|40|40" blendmode="screen" ondown="set(movevectory,+1);" onup="set(movevectory,0);" />
<plugin name="hotspots" align="bottom" x="+55" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop="240|0|40|40" onovercrop="240|40|40|40" ondowncrop="240|80|40|40" blendmode="screen" onhover="showtext(Links und Karte deaktivieren, buttonstyle);" onclick="switch(hotspot.visible);switch(plugin[map].visible);" />
<plugin name="openfs" align="bottom" x="+85" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop="280|0|40|40" onovercrop="280|40|40|40" ondowncrop="280|80|40|40" blendmode="screen" onhover="showtext(Vollbild, buttonstyle);"
onclick="set(fullscreen,true);" visible="true" />
<plugin name="closefs" align="bottom" x="+85" y="10" url="%SWFPATH%/skin/buttons.jpg"
visible="true" keep="true" alpha="0" scale="0.7" crop="320|0|40|40" onovercrop="320|40|40|40" ondowncrop="320|80|40|40" blendmode="screen" onhover="showtext(Vollbild beenden,buttonstyle);"
onclick="set(fullscreen,false);" visible="false" />
<plugin name="rotation" align="bottom" x="+114" y="13" url="%SWFPATH%/skin/rotation.png"
visible="true" keep="true" alpha="0" scale="0.69" blendmode="screen" onhover="showtext(Autorotation an/aus, buttonstyle); set(alpha,1);" onout="set(alpha,0.75);" onclick="action(stoprotation);" />
<action name="startrotation">
set(plugin[rotation].onclick,action(stoprotation););
set(autorotate.enabled,true);
</action>
<action name="stoprotation">
set(plugin[rotation].onclick,action(startrotation););
set(autorotate.enabled,false);
</action>
<action name="Buttons_verzoegert_starten">
set(plugin[left].alpha, 0);
set(plugin[right].alpha, 0);
set(plugin[up].alpha, 0);
set(plugin[down].alpha, 0);
set(plugin[hotspots].alpha, 0);
set(plugin[openfs].alpha, 0);
set(plugin[closefs].alpha, 0);
set(plugin[rotation].alpha, 0);
wait(1);
tween(plugin[left].alpha, 1);
tween(plugin[right].alpha, 1);
tween(plugin[up].alpha, 1);
tween(plugin[down].alpha, 1);
tween(plugin[hotspots].alpha, 1);
tween(plugin[openfs].alpha, 1);
tween(plugin[closefs].alpha, 1);
tween(plugin[rotation].alpha, 0.75);
</action>
.
.
.
<!----------------------------------------------------------------------------------------------------------->
<!-- Szene Brücke Start -->
<scene name="Bruecke" onstart="action(startscene);">
<action name="startscene">
action(activatespot,Bruecke,190);
</action>
<preview type="CUBESTRIP" url="images_kopie/Bruecke.jpg_cube.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="1000">
<level tiledimagewidth="1000" tiledimageheight="1000">
<left url="images_kopie/Bruecke.jpg_cube.tiles/l1_l_%0v_%0h.jpg" />
<front url="images_kopie/Bruecke.jpg_cube.tiles/l1_f_%0v_%0h.jpg" />
<right url="images_kopie/Bruecke.jpg_cube.tiles/l1_r_%0v_%0h.jpg" />
<back url="images_kopie/Bruecke.jpg_cube.tiles/l1_b_%0v_%0h.jpg" />
<up url="images_kopie/Bruecke.jpg_cube.tiles/l1_u_%0v_%0h.jpg" />
<down url="images_kopie/Bruecke.jpg_cube.tiles/l1_d_%0v_%0h.jpg" />
</level>
</image>
<!-- Achtung! Bei Ängerung der Starszene diesen Parameter mitnehmen!!! -->
<events onloadcomplete="action(startrotation);" />
<hotspot name="nach_Bruecke"
url="images_kopie/Pfeil.png"
keep="false"
zoom="false"
scale="0.7"
visible="true"
enabled="true"
handcursor="true"
capture="true"
children="true"
zorder=""
alpha="0.5"
blendmode="normal"
smoothing="true"
distorted="true"
ath="0"
atv="-3"
onover="tween(scale,1);tween(alpha,1);action(stoprotation);"
onhover="showtext( zum Zwinger );"
onout="tween(scale,0.7);tween(alpha,0.5);action(startrotation);"
onclick="looktohotspot(nach_Bruecke,100,smooth(150,25,100));loadscene(nach_Bruecke, NULL, MERGE, BLEND(1));"
/>
<!-- Info Brücke Start -->
<hotspot name="info_Bruecke"
url="images_kopie/info.png"
distorted="true"
ath="0"
atv="25"
alpha="0.4"
scale="0.7"
onover="tween(alpha,1);action(stoprotation);"
onhover="showtext( Informationen zur Brücke );"
onout="tween(alpha,0.4);action(startrotation);"
onclick="looktohotspot(info_Bruecke,50,smooth(150,25,100));action(showtextfield, textfield_Bruecke);"
/>
<plugin name="textfield_Bruecke"
url="plugins/textfield.swf"
keep="true"
visible="false" enabled="true" handcursor="false" capture="true" children="true"
zorder="2"
alpha="1" blendmode="layer"
smoothing="true"
origin="center" edge=""
x="" y=""
width="400" height="400"
zorder="2"
scale="1"
onloaded=""
onover=""
onhover="action(stoprotation);"
onout="action(startrotation);"
ondown=""
onup=""
onclick=""
autosize="none"
background="true"
backgroundcolor="0xFFFFFF"
blur="0"
bordercolor="0"
borderwidth="1"
css="data:defaultcss"
glow="0"
glowcolor="16777215"
html="data:content_textfield_Bruecke"
roundedge="16"
selectable="false"
shadow="0"
textblur="0"
textglow="0"
textglowcolor="16777215"
textshadow="0"
/>
<data name="content_textfield_Bruecke">
<p align="left"><img src="images_kopie/image.jpg" />
<font face="arial" size="+1"><textformat leftmargin="10" rightmargin="10">
<br />
<b><u>Ehemalige Zugbrücke</u></b>
<br />
<br />
Lorem ipsum dolor sit amet, consectetuer adipiscing elit,
sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.
Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis
nisl ut aliquip ex ea commodo consequat. Duis autem vel eum iriure dolor in hendrerit
in vulputate velit esse molestie consequat, vel illum dolore eu feugiat nulla facilisis
at vero et accumsan et iusto odio dignissim qui blandit praesent luptatum zzril delenit
augue duis dolore te feugait nulla facilisi. Lorem ipsum dolor sit amet, consectetuer
adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam
erat volutpat.
<br />
<br /><br /><br /><br /><br /></textformat></font></p><p align="center"><font face="arial" size="+0.3">
<a href="event:action(hidetextfield, textfield_Bruecke);"><b> Fenster schließen</b></a></font></p>
</data>
<!-- Info Brücke Ende -->
</scene>
<!-- Szene Brücke Ende -->
.
.
.
.
.
.
.
Display More