You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

jschrader

Intermediate

  • "jschrader" started this thread

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

1

Monday, April 25th 2011, 4:49pm

Standalone player opens new windows

Gentlemen, I kindly ask for your help to track down a strange problem.

I've created a tour which should run on a touchscreen computer as a standalone Flash exe.
On my computer everything works fine. But the guy who had installed this on the customers machine told me that when he clicks on hotpsots in the tour to go to another panorama this would open in a new window, which of course it should not do.

Do you have any idea how this could be possible as this error is not repeatable on my computer.
The system they are using is a WIN7 32bit with 1MB RAM.

The XML code goes like this:

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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<krpano version="1.0.8" onstart="startup();" >
	<!-- vtour.xml template krpano tools version 1.0.8.12 -->

	<action name="startup">
		<!-- load the first scene -->
		loadscene(get(scene[0].name), null,KEPPBASE, blend);
		<!-- build the thumbnails (remove the next line to remove the thumbnails)
		buildthumbs();-->
	</action>

<autorotate enabled="true"
            waittime="4"
            speed="10.0"
            />

	<!-- disable the default progress bar -->
	<progress showload="none" showwait="none" />

	<!-- hotspot styles (for Flash and HTML5) -->
	<style name="hotspot_info"
	       url="hotspots/watchout_w.png"
	       frames="20" framewidth="64" frameheight="64" frame="0"
	       onloaded="hotspot_animate();"
	       altonloaded="if(isphone, mul(scale,2)); onloaded();"
	       zoom="true"
	       scale="0.5"
	       distorted="true"
	       />

	<style name="hotspot_go_b"
	       url="hotspots/go_b.png"
	       frames="20" framewidth="64" frameheight="64" frame="0"
	       onloaded="hotspot_animate();"
	       altonloaded="if(isphone, mul(scale,2)); onloaded();"
	       zoom="true"
	       scale="0.5"
	       distorted="true"
	       />

	<style name="hotspot_go_w"
	       url="hotspots/go_w.png"
	       frames="20" framewidth="64" frameheight="64" frame="0"
	       onloaded="hotspot_animate();"
	       altonloaded="if(isphone, mul(scale,2)); onloaded();"
	       zoom="true"
	       scale="0.5"
	       distorted="true"
	       />

   	<style name="historic"
	       url="hotspots/historic.png"
	       frames="20" framewidth="64" frameheight="64" frame="0"
	       onloaded="hotspot_animate();"
	       altonloaded="if(isphone, mul(scale,2)); onloaded();"
	       zoom="true"
	       scale="0.5"
	       distorted="true"
	       />

	<scene name="start" title="start" onstart="set(idletime,0)" thumburl="">

		<plugin 	name="startbild"
			url="images/startbild.jpg"
			visible="true"
			alpha="1"
			align="center"
			onhover=""
			onclick=""
			keep="true"
			handcursor="false"
			/>

			<plugin name="Innenhof" style=""
				url="images/hof.png"
				align="center"
		         x="-300"
		         y="50"
		         zoom="false"
				 zorder="5"
		         onclick="loadscene('scene_innenhof',null,MERGE,BLEND(1)); tween(plugin[startbild].alpha,0,,,set(plugin[startbild].visible,false));"
		         />

			<plugin name="Turbinenhalle" style=""
				url="images/turbinenhaus.png"
				align="center"
		         x="-300"
		         y="-150"
		         zoom="false"
				 zorder="5"
		         onclick="loadscene('scene_turbinenhalle',null,MERGE,BLEND(1)); tween(plugin[startbild].alpha,0,,,set(plugin[startbild].visible,false));"
		         />

			 <plugin name="Besucherzentrum" style=""
				url="images/zentrum.png"
				align="center"
		         x="300"
		         y="50"
		         zoom="false"
				 zorder="5"
		        onclick="loadscene('scene_besucherzentrum',null,MERGE,BLEND(1));tween(plugin[startbild].alpha,0,,,set(plugin[startbild].visible,false));"
		         />

			<plugin name="Leitstand" style=""
				url="images/leitstand.png"
				align="center"
		         x="0"
		         y="-150"
		         zoom="false"
				 zorder="5"
		         onclick="loadscene('scene_leitstand',null,MERGE,BLEND(1)); tween(plugin[startbild].alpha,0,,,set(plugin[startbild].visible,false));"
		         />

			<plugin name="Gang" style=""
				url="images/gang.png"
				align="center"
		         x="300"
		         y="-150"
		         zoom="false"
				 zorder="5"
		         onclick="loadscene('scene_kabel',null,MERGE,BLEND(1)); tween(plugin[startbild].alpha,0,,,set(plugin[startbild].visible,false));"
		         />

			<plugin name="Rohre" style=""
				url="images/rohre.png"
				align="center"
		         x="0"
		         y="50"
		         zoom="false"
				 zorder="5"
		         onclick="loadscene('scene_wasserschloss',null,MERGE,BLEND(1)); tween(plugin[startbild].alpha,0,,,set(plugin[startbild].visible,false));"
		         />

		<plugin name="top" style=""
				url="images/top.png"
				align="top"
		         zoom="false"
				 zorder="5"
		         onclick=""
				 keep="true"
		         />


<plugin name="bottom" style=""
				url="images/bottom.png"
				align="bottom"
		         zoom="false"
				 zorder="6"
		         onclick=""

		         />

<plugin name="back" style=""
				url="images/back.png"
				align="bottom"
		         zoom="false"
				 zorder="5"
		         onclick="startup()"
				 keep="true"
		         />

	</scene>

	<scene name="scene_kabel" title="kabel" onstart="set(idletime,60)" thumburl="kabel.tiles/thumb.jpg">
	<events onidle="startup();" />
	<control mousetype="drag2D" />

		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="90" maxpixelzoom="1.0" fovmin="60" fovmax="120" />

		<preview url="kabel.tiles/preview.jpg" />

		<image>
			<left  url="kabel.tiles/pano_l.jpg" />
			<front url="kabel.tiles/pano_f.jpg" />
			<right url="kabel.tiles/pano_r.jpg" />
			<back  url="kabel.tiles/pano_b.jpg" />
			<up    url="kabel.tiles/pano_u.jpg" />
			<down  url="kabel.tiles/pano_d.jpg" />
			<mobile>
				<left  url="kabel.tiles/mobile_l.jpg" />
				<front url="kabel.tiles/mobile_f.jpg" />
				<right url="kabel.tiles/mobile_r.jpg" />
				<back  url="kabel.tiles/mobile_b.jpg" />
				<up    url="kabel.tiles/mobile_u.jpg" />
				<down  url="kabel.tiles/mobile_d.jpg" />
			</mobile>
			<tablet>
				<left  url="kabel.tiles/tablet_l.jpg" />
				<front url="kabel.tiles/tablet_f.jpg" />
				<right url="kabel.tiles/tablet_r.jpg" />
				<back  url="kabel.tiles/tablet_b.jpg" />
				<up    url="kabel.tiles/tablet_u.jpg" />
				<down  url="kabel.tiles/tablet_d.jpg" />
			</tablet>
		</image>

		<!-- place hotspots here -->

			<hotspot name="go_halle" style="hotspot_go_w"
		         ath="0"
		         atv="0"
		         zoom="false"
		         onclick="looktohotspot(get(name)); loadscene('scene_turbinenhalle',null,MERGE,BLEND(1));"
		         />

	</scene>




###############
I HAD TO CUT OFF SOME CODE HERE AS IT WAS TOO LONG
##############

</krpano>


If needed I might gve a link to a working version.
Thanks a lot

Jürgen

Posts: 1,852

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Monday, April 25th 2011, 5:53pm

dont see anything suspicious, but if you want I can test it on a win7 64.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

esys

Intermediate

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

3

Tuesday, April 26th 2011, 1:57pm

Hello Jschrader,

For my personnal information, i don't really understand the way you built your tour (connections between hotspots, style and plugins?!). So if you've got a link to visualize it, welcome.

About the hotspot "bug", does their touchscreen computer have some view and actions settings ? Like your browser, when you setit to open any new lilnk in a new tab or window. I understood it's a standalone tour, but maybe it's a particular function to the touchscreen to be able to set it the way you like to, even when running on local.

Otherwise your code seems to be good. Safari inspector reported no error on this part (i closed your code with </krpano> before testing it).

Best regards.
Steph
Steph

4

Wednesday, April 27th 2011, 10:10am

Hi,
But the guy who had installed this on the customers machine told me that when he clicks on hotpsots in the tour to go to another panorama this would open in a new window
that would be very strange!
a loadpano() or loadscene() call will be never able to open a new browser window!

new browser windows can only be opened via the "openurl()' action but there is no such call in your posted code...

best regards,
Klaus

jschrader

Intermediate

  • "jschrader" started this thread

Posts: 237

Location: Bavaria, Germany

Occupation: Photographer, Producer

  • Send private message

5

Wednesday, April 27th 2011, 4:52pm

Thank you Klaus and all others.
To be precise I have no idea what kind of window that is when you run a Flash exe.
If nothing helps I will have to go there and try to find out myself.

To be sure you can download the entire xml file here.