<!--
	krpano 1.0.8
	- scenes example with selection per combobox
-->

<krpano version="1.0.8" onstart="action(start)">

	<!-- text style for startup info -->
	<textstyle name="infostyle" origin="top" edge="top" yoffset="20" textalign="center" background="false" border="false"  fontsize="40" textcolor="0xFFFFFF" bold="false" effect="glow(0xFFFFFF,0.7,4,2);glow(0x000000,1,4,2);dropshadow(3,45,0x000000,2,0.6);" showtime="1.0" fadetime="1.0" />


	
	<!-- combobox plugin -->
	<plugin name="box" url="%SWFPATH%/plugins/combobox.swf" preload="true"
	        keep="true"
	        align="lefttop" x="10" y="10" width="100" 
	        blendmode="layer" 
	        onclick="trace(combobox clicked);"
	        />
	        
	        
	<action name="start">
		plugin[box].addIdItem(1, 'Scene 1', loadscene(scene1, null, MERGE, BLEND(1)); );
        plugin[box].addIdItem(2, 'Scene 2', loadscene(scene2, null, MERGE, BLEND(1)); );
        plugin[box].addIdItem(3, 'Scene 3', loadscene(scene3, null, MERGE, BLEND(1)); );
        
        <!-- load 1. scene on start -->
        loadscene(scene1, null, MERGE);
	</action>
	



	<!-- scenes -->


	<!-- first scene/pano -->
	<scene name="scene1" onstart="action(startscene);">

		<action name="startscene">
			showtext('[b][i]scene 1[/i][/b]', infostyle);
			plugin[box].selectIdItem(1);
		</action>

		<view hlookat="-15" vlookat="-10" fov="90" />

		<image type="CUBESTRIP">
			<cubestrip url="pano1.jpg" />
		</image>

		<!-- place here scene local elements like plugins,hotspots, ... -->

		<hotspot name="spot2" url="spot2.png" ath="-42" atv="-12" scale="0.6" zoom="true"
		         alpha="0.3"
		         onover="tween(alpha,1);tween(scale,1);"
		         onout="tween(alpha,0.3);tween(scale,0.6);"
		         onclick="looktohotspot(spot2); loadscene(scene2, null, MERGE, BLEND(1));"
		         />

	</scene>


	<!-- second scene/pano-->
	<scene name="scene2" onstart="action(startscene);">

		<action name="startscene">
			showtext('[b][i]scene 2[/i][/b]', infostyle);
			plugin[box].selectIdItem(2);
		</action>

		<view hlookat="-110" vlookat="8" fov="100" />

		<image type="CUBESTRIP">
			<cubestrip url="pano2.jpg" />
		</image>

		<!-- place here scene local elements like plugins,hotspots, ... -->

		<hotspot name="spot3" url="spot3.png" ath="265" atv="0" scale="0.6" zoom="true"
		         alpha="0.3"
		         onover="tween(alpha,1);tween(scale,1);"
		         onout="tween(alpha,0.3);tween(scale,0.6);"
		         onclick="looktohotspot(spot3); loadscene(scene3, null, MERGE, BLEND(1));"
		         />

		<hotspot name="spot1" url="spot1.png" ath="165" atv="0" scale="0.6" zoom="true"
		         alpha="0.3"
		         onover="tween(alpha,1);tween(scale,1);"
		         onout="tween(alpha,0.3);tween(scale,0.6);"
		         onclick="looktohotspot(spot1); loadscene(scene1, null, MERGE, BLEND(1));"
		         />

	</scene>



	<!-- third scene/pano-->
	<scene name="scene3" onstart="action(startscene);">

		<action name="startscene">
			showtext('[b][i]scene 3[/i][/b]', infostyle);
			plugin[box].selectIdItem(3);
		</action>

		<view hlookat="-174" vlookat="5" fov="75" />

		<image type="CUBESTRIP">
			<cubestrip url="pano3.jpg" />
		</image>

		<!-- place here scene local elements like plugins,hotspots, ... -->

		<hotspot name="spot3" url="spot2.png" ath="0" atv="0" scale="0.6" zoom="true"
		         alpha="0.3"
		         onover="tween(alpha,1);tween(scale,1);"
		         onout="tween(alpha,0.3);tween(scale,0.6);"
		         onclick="looktohotspot(spot3); loadscene(scene2, null, MERGE, BLEND(1));"
		         />

	</scene>

</krpano>

