You are not logged in.

21

Thursday, May 27th 2010, 1:34pm

adding links to open panos

hi all!

I think your template looks great! It is just what I have been looking for! I am really new to krpano so appreciate any help i can get.

I cant get it to work! I get the following error msg. I have uploaded online and the same happens!

ERROR: action not found:loadbathroom
ERROR: action not found:mar_2010 Panorama.xml

I think I have the correct info in the actions and the gallery thumbnail code. and all the files are in the same directory.

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
<!-- Menu Bar for Thumbs -->
	<plugin 
		name="menu"
		url="menu.png"
		keep="true"
		visible="true"
		enabled="true"
		handcursor="false"
		capture="false"
		zorder="1"
		alpha="1.00"
		blendmode="normal"
		smoothing="true"
		align="bottom"
		edge="centre"
		x="0" y="0"
		ox="0" oy="20"
		rotate="0"
		width="" height=""
		scale="1"
		scale9grid=""
		crop=""
		mask=""
		onloaded=""
		onover="action(menu_show);"
		onhover=""
		onout="action(menu_hide);"
		ondown=""
		onup=""
		onclick=""
	/>

<action name="menu_show">
	tween(plugin[menu].y,67,distance(700,3),linear);
</action>

<action name="menu_hide">
	tween(plugin[menu].y,0,distance(700,3),linear);
</action>

!-- LINKS TO TOURS FOR THUMBS -->	  
	<action name="loadpano">
		loadpano(%SWFPATH%/%1, null, MERGE, BLEND(1));
	</action>


	<action name="loadkitchen">
		action(loadpano, mar_2010 Panorama.xml);
	</action>
	
<!-- Enable and disable how ever much you want...

	<action name="loadlivingroom">
		action(loadpano, living room-crestnicholson-showhome.xml);
	</action>

	<action name="loadbedroom">
		action(loadpano, crestnicholson-showhome-bedroom.xml);
	</action>

	<action name="loadbathroom">
		action(loadpano, bathroom.xml);
	</action>
-->





<!-- Scrolling Thumbs plugin -->
<plugin name="thumbnails" 
		url="as3Thumbsforkrpano.swf?TheXML=./gallery1.xml" 
		parent="menu"
		keep="true"
		capture="false" 
		align="bottom"
		zorder="2"
		onover="tween(alpha,1);"onout="tween(alpha,0.8);"
		/>
		 
 <!-- Full Screen Button -->		 
<plugin name="fullscreen"
		url="fullscreen.png" 
		parent="menu" 
		align="bottom"
		keep="true"
		x="340" y="15" zorder="2"
		onclick="switch(fullscreen);"
		/>
			
<!-- Loading plugin -->

<plugin name="introimage"
	    	url="load.png"
	    	align="center"
	    	onloaded="set(alpha,0); tween(alpha,1.0);"
	    	onclick="hideintroimage();"
	    	/>
	
	<action name="hideintroimage">
		if(plugin[introimage].enabled,
			set(plugin[introimage].enabled,false);
			tween(plugin[introimage].alpha, 0.0, 0.5, default, removeplugin(introimage));
		  );
	</action>

<action name="slide_action_2_in">
		tween(plugin[googlemaps].x,0,distance(250,1.5),linear);
	</action>

	<action name="slide_action_2_out">
		tween(plugin[googlemaps].x,-230,distance(250,1.5),linear);
	</action>

<plugin name="googlemaps"
	    	url="googlemaps.swf"
	    	keep="true"
	    	blendmode="normal"
	    	zorder="6"
	    	x="-230" 
	    	y="0"
	    	width="250"
		align="topright"
	    	height="200"
	    	visible="true"
		onloaded=""
		onover="action(slide_action_2_in);"
		onhover=""
		onout="action(slide_action_2_out);"

	    	key="ABQIAAAAIPBMz07hMD7cQimqzIVcoBTyddqcOtaHsHfAfyLpivb7FqZtBBTZg_EpgPwFgFItAlqyEJO-gsGkow"

			lat="51.447187"
			lng="-2.600842"
			zoom="18"
			maptype="SATELLITE"

			dragging="true"
			scrollwheel="true"
			continuouszoom="false"
			
			onmapready="load_korfustadt_altefestung_oben();"
			>
			
		<radar visible="true" size="300" alpha="0.33" fillcolor="0xFFFFFF" fillalpha="1.0"
			   linecolor="0xFFFFFF" linealpha="0.0" linewidth="0.0"
			   glow="true" glowcolor="0" glowwidth="4" glowstrength="3"
			   behindspots="true" dragable="true"
			   />
			   
		<zoomcontrol  visible="true" anchor="topleft" x="2" y="2" hasscrolltrack="false" />
		

		<!-- map spots -->

		<spot name="Crest Nicholson Harbourside" active="true"
		  	lat="51.447187" lng="-2.600842" heading="165"
		  	onhover="showtext(Crest Nicholson Harbouside Apartments);"
		  	onclick="load_korfustadt_altefestung_oben();"
		  	/>

	</plugin>



	<!-- load and update map actions -->
	<action name="update_map_spot">
		plugin[map].activatespot(%1);
		plugin[map].pantospot(%1);
	</action>


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
<?xml version="1.0" encoding="utf-8"?>

<images>
<thumboptions>
<ScrollSpeed>4</ScrollSpeed>

<thumbW>100</thumbW>
<thumbH>61</thumbH>


<ThumbPadding>17</ThumbPadding>
<ShownThumbs>3</ShownThumbs>

<ThumbOffset>85</ThumbOffset>
<ThumbOffsetY>233</ThumbOffsetY>

<textOffsetX>30</textOffsetX>
<textOffsetY>175</textOffsetY>
<InitialAlpha>0.8</InitialAlpha>
<font_type>Arial</font_type>
<font_size>24</font_size>
<font_alpha>1</font_alpha>
<font_color>0xffffff</font_color>
<overColor>0x000000</overColor>

</thumboptions>

		<pic>
    	<thumb>thumbs/kitchen_thumb.jpg</thumb>
        	<panoToLoadXml>mar_2010 Panorama.xml</panoToLoadXml>
          	<about><![CDATA[Kitchen]]></about> </pic>  
	   
	   
		<pic>
    	<thumb>thumbs/livingroom_thumb.jpg</thumb>
        	<panoToLoadXml>living room-crestnicholson-showhome.xml</panoToLoadXml>
          	<about><![CDATA[Living Room]]></about> </pic> 
	   
	   
		<pic>
    	<thumb>thumbs/bedroom_thumb.jpg</thumb>
        	<panoToLoadXml>loadbedroom</panoToLoadXml>
          	<about><![CDATA[Bedroom]]></about> </pic> 
	   
	   
		<pic>
    	<thumb>thumbs/bathroom_thumb.jpg</thumb>
        	<panoToLoadXml>loadbathroom</panoToLoadXml>
          	<about><![CDATA[Bathroom]]></about> </pic> 
			  
		
			  			
  </images>


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
<krpano version="1.0.8">

	<include url="plugins.xml" />
	
	<view fov="90" fovmin="60" fovmax="120" />
	
	<image type="CUBE" multires="true" tilesize="506" frames="1" frame="1">
		<level tiledimagewidth="2530" tiledimageheight="2530">
			<left  url="mar_2010 Panorama.tiles/%f/l5/l_%0v_%0h.jpg" />
			<front url="mar_2010 Panorama.tiles/%f/l5/f_%0v_%0h.jpg" />
			<right url="mar_2010 Panorama.tiles/%f/l5/r_%0v_%0h.jpg" />
			<back  url="mar_2010 Panorama.tiles/%f/l5/b_%0v_%0h.jpg" />
			<up	url="mar_2010 Panorama.tiles/%f/l5/u_%0v_%0h.jpg" />
			<down  url="mar_2010 Panorama.tiles/%f/l5/d_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="1265" tiledimageheight="1265">
			<left  url="mar_2010 Panorama.tiles/%f/l4/l_%0v_%0h.jpg" />
			<front url="mar_2010 Panorama.tiles/%f/l4/f_%0v_%0h.jpg" />
			<right url="mar_2010 Panorama.tiles/%f/l4/r_%0v_%0h.jpg" />
			<back  url="mar_2010 Panorama.tiles/%f/l4/b_%0v_%0h.jpg" />
			<up	url="mar_2010 Panorama.tiles/%f/l4/u_%0v_%0h.jpg" />
			<down  url="mar_2010 Panorama.tiles/%f/l4/d_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="633" tiledimageheight="633">
			<left  url="mar_2010 Panorama.tiles/%f/l3/l_%0v_%0h.jpg" />
			<front url="mar_2010 Panorama.tiles/%f/l3/f_%0v_%0h.jpg" />
			<right url="mar_2010 Panorama.tiles/%f/l3/r_%0v_%0h.jpg" />
			<back  url="mar_2010 Panorama.tiles/%f/l3/b_%0v_%0h.jpg" />
			<up	url="mar_2010 Panorama.tiles/%f/l3/u_%0v_%0h.jpg" />
			<down  url="mar_2010 Panorama.tiles/%f/l3/d_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="317" tiledimageheight="317">
			<left  url="mar_2010 Panorama.tiles/%f/l2/l_%0v_%0h.jpg" />
			<front url="mar_2010 Panorama.tiles/%f/l2/f_%0v_%0h.jpg" />
			<right url="mar_2010 Panorama.tiles/%f/l2/r_%0v_%0h.jpg" />
			<back  url="mar_2010 Panorama.tiles/%f/l2/b_%0v_%0h.jpg" />
			<up	url="mar_2010 Panorama.tiles/%f/l2/u_%0v_%0h.jpg" />
			<down  url="mar_2010 Panorama.tiles/%f/l2/d_%0v_%0h.jpg" />
		</level>
		<level tiledimagewidth="159" tiledimageheight="159" aspreview="true">
			<left  url="mar_2010 Panorama.tiles/%f/l1/l_%0v_%0h.jpg" />
			<front url="mar_2010 Panorama.tiles/%f/l1/f_%0v_%0h.jpg" />
			<right url="mar_2010 Panorama.tiles/%f/l1/r_%0v_%0h.jpg" />
			<back  url="mar_2010 Panorama.tiles/%f/l1/b_%0v_%0h.jpg" />
			<up	url="mar_2010 Panorama.tiles/%f/l1/u_%0v_%0h.jpg" />
			<down  url="mar_2010 Panorama.tiles/%f/l1/d_%0v_%0h.jpg" />
		</level>
	</image>

</krpano>


It can be viewed online at http://www.vrvenue.net/examples/crestnic…r/bathroom.html

I have all the panos pointing to the same plugin and gallery.xml.

Any help would be really appreciated

Many thanks


Rich

This post has been edited 2 times, last edit by "Virtual Venue" (Jul 23rd 2010, 3:12pm)


22

Sunday, July 11th 2010, 9:51pm

Hotspot to open an image

gr8 templates.. thanks a lot . Could anyone please tell me how to open image from the hotspot.. thanks a lot.. sorry for such a dumb question..

23

Monday, July 19th 2010, 3:57pm

Hi guys, I have a problem with this plugin, I don't see the thumbs... See here http://360planetestudio.com/panos/bayeux/ Thanks a lot, please if some can answer fast I'll very appreciate Thanks a lot you guys ! And by the way very beautiful template !

24

Friday, July 23rd 2010, 3:23pm

TypeError: Error #1090: XML parser failure: element is malformed. at as3Thumbsforkrpano_fla::MainTimeline/xmlLoaded() at flash.events::EventDispatcher/dispatchEventFunction() at flash.events::EventDispatcher/dispatchEvent() at flash.net::URLLoader/onC

Well after posting my post above, I realised, i had screwed up wih all the coding. big time.

I got everything to work beautifully then suddenly i get this message, continuously! any ideas? I didnt change a thing in the coding. i double checked it by apple+z

TypeError: Error #1090: XML parser failure: element is malformed.
at as3Thumbsforkrpano_fla::MainTimeline/xmlLoaded()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()

hope someone can help, this job is nearly done!

Rich

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
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
<krpano version="1.0.8" logkey="false">
	<include url="YellowDuckBathrooms1.xml"/>
	<autorotate enabled="true"/>
	<textstyle name="DEFAULT" font="Arial" fontsize="16" textcolor="0xFFFFFF" border="false" background="false" effect="glow(0x000000,0.7,4,2);dropshadow(4,45,0x000000,4,1);"/>
	<plugin name="logo" url="YellowDuckBathroomsdata/graphics/logo.png" keep="true" autopos="rightbottom,0,0" handcursor="false"/>
		
	
<!-- LINKS TO TOURS FOR THUMBS -->	  
	<action name="loadpano">
		loadpano(%SWFPATH%/%1, null, MERGE, BLEND(1));
	</action>


	<action name="tour1">
		action(loadpano, YellowDuckBathrooms0.xml);
	</action>
	
	<action name="tour2">
		action(loadpano, YellowDuckBathrooms1.xml);
	</action>
	
	<action name="tour3">
		action(loadpano, YellowDuckBathrooms2.xml);
	</action>
	
	<action name="tour4">
		action(loadpano, YellowDuckBathrooms3.xml);
	</action>
	
	<action name="tour5">
		action(loadpano, YellowDuckBathrooms4.xml);
	</action>
	
	
	
	<contextmenu fullscreen="true">
		<item name="n0" enabled="true" visible="true" separator="false"
		  	caption="KRPANO"
		  	onclick=""
		  	/>
		<item name="n2" enabled="true" visible="true" separator="false"
		  	caption="About The Photographer"
		  	onclick="openurl(http://www.vrvenue.net);"
		  	/>
		
		<item name="n4" enabled="true" visible="true" separator="false"
		  	caption="FULLSCREEN"
		  	onclick=""
		  	/>
		<item name="n5" enabled="true" visible="true" separator="true"
		  	caption="normal view"
		  	onclick="action(view_normal);"
		  	/>
		<item name="n6" enabled="true" visible="true" separator="false"
		  	caption="fisheye view"
		  	onclick="action(view_fisheye);"
		  	/>
		<item name="n7" enabled="true" visible="true" separator="false"
		  	caption="architectural view"
		  	onclick="action(view_architectural);"
		  	/>
		<item name="n8" enabled="true" visible="true" separator="false"
		  	caption="stereographic view"
		  	onclick="action(view_stereographic);"
		  	/>
		<item name="n9" enabled="true" visible="true" separator="false"
		  	caption="pannini view"
		  	onclick="action(view_pannini);"
		  	/>
		<item name="n10" enabled="true" visible="true" separator="false"
		  	caption="little planet view"
		  	onclick="action(view_littleplanet);"
		  	/>
	</contextmenu>
	
	<action name="view_normal">
		tween(view.fovmax,   	150.0, distance(179, 1.00), easeoutquad);
		tween(view.architectural,  0.0, distance(1.0, 0.45), easeoutquad);
		tween(view.fisheye,    	0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(display.flash10,on); );
	</action>

	<action name="view_fisheye">
		set(display.flash10,off);
		tween(view.architectural, 0.0, distance(1.0, 0.30), easeoutquad);
		tween(view.fisheye,   	0.0 ,distance(1.0, 0.30), easeoutquad, set(view.stereographic,false); set(view.pannini,false); set(view.fovmax,179); tween(view.fisheye, 0.35, distance(1.0,1.25)); );
	</action>

	<action name="view_architectural">
		tween(view.fovmax,   	150.0, distance(179, 1.00), easeoutquad);
		tween(view.architectural,  1.0, distance(1.0, 0.45), easeoutquad);
		tween(view.fisheye,    	0.0, distance(1.0, 0.45), easeoutquad, set(view.stereographic,false);set(view.pannini,false);set(display.flash10,on); );
	</action>

	<action name="view_stereographic">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		set(backtonormalfirst,false);
		if(view.pannini   	== true,  set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, false);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
	</action>

	<action name="view_pannini">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		set(backtonormalfirst,false);
		if(view.pannini   	== false, set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, true);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
	</action>

	<action name="view_littleplanet">
		set(display.flash10,off);
		tween(view.architectural, 0.0, 0.25);
		tween(view.vlookat,  90, distance(179, 1.50), easeoutquad);
		set(backtonormalfirst,false);
		if(view.pannini   	== true,  set(backtonormalfirst,true) );
		if(view.stereographic == false, set(backtonormalfirst,true) );
		if(backtonormalfirst, tween(view.fisheye, 0.0 ,distance(1.0, 0.25), easeoutquad, WAIT); );
		set(view.pannini, false);
		set(view.stereographic, true);
		set(view.fovmax, 150);
		tween(view.fisheye, 1.0, distance(1.0, 0.75), easeoutquad);
		tween(view.fov, 	150, distance(179, 0.75), easeoutquad);
	</action>

	
	<plugin name="previewimage" 
		 url="skin/load.png" 
		 align="center" 
		 preload="true" 
		 onclick="tween(alpha, 0);delayedcall(0.5,set(visible,false));"
		 />
		 
		 <plugin 
		name="logo"
		url="images/logo.png"
		keep="true"
		visible="true"
		enabled="true"
		handcursor="false"
		capture="false"
		zorder="1"
		alpha=".8"
		blendmode="normal"
		smoothing="true"
		align="lefttop"
		edge="centre"
		x="127" y="20"
		ox="0" oy="20"
		rotate="0"
		width="" height=""
		scale="1"
		scale9grid=""
		crop=""
		mask=""
		onloaded=""
		onhover=""
		ondown=""
		onup=""
		onclick=""
		onover="tween(alpha,1);"
		onout="tween(alpha,0.8);"

	/>
	
	
	<!-- Menu Bar for Thumbs -->
	<plugin 
		name="menu"
		url="menu.png"
		keep="true"
		visible="true"
		enabled="true"
		handcursor="false"
		capture="false"
		zorder="1"
		alpha="1.00"
		blendmode="normal"
		smoothing="true"
		align="bottom"
		edge="centre"
		x="0" y="0"
		ox="0" oy="20"
		rotate="0"
		width="" height=""
		scale="1"
		scale9grid=""
		crop=""
		mask=""
		onloaded=""
		onover="action(menu_show);"
		onhover=""
		onout="action(menu_hide);"
		ondown=""
		onup=""
		onclick=""
	/>

<action name="menu_show">
	tween(plugin[menu].y,67,distance(700,3),linear);
</action>

<action name="menu_hide">
	tween(plugin[menu].y,0,distance(700,3),linear);
</action>

<!-- Scrolling Thumbs plugin -->
<plugin name="thumbnails" 
		url="as3Thumbsforkrpano.swf?TheXML=./gallery1.xml" 
		parent="menu"
		keep="true"
		capture="false" 
		align="bottom"
		zorder="2"
		/>
		 
 <!-- Full Screen Button -->		 
<plugin name="fullscreen"
		url="fullscreen.png" 
		parent="menu" 
		align="bottom"
		keep="true"
		x="260" y="15" zorder="2"
		onclick="switch(fullscreen);"
		onover="set(blendmode,add);" 
		onout="set(blendmode,normal);"
		/>
		
		<plugin name="in" 
		url="YellowDuckBathroomsdata/graphics/btn_plus.png" 
		parent="menu"
		keep="true" 
		align="bottom" 
		x="310" 
		y="15" ondown="set(movevectorz,-1);"
		onup="set(movevectorz,0);" onover="set(blendmode,add);" 
		onout="set(blendmode,normal);"/>
		
	<plugin name="out" url="YellowDuckBathroomsdata/graphics/btn_minus.png"
	parent="menu" 
	keep="true" 
	align="bottom" 
	x="360" 
	y="15" 
	ondown="set(movevectorz,+1);" 
	onup="set(movevectorz,0);" 
	onover="set(blendmode,add);" 
	onout="set(blendmode,normal);"/>

		
</krpano>

25

Friday, July 23rd 2010, 5:30pm

Hi guys, I have a problem with this plugin, I don't see the thumbs... See here http://360planetestudio.com/panos/bayeux/ Thanks a lot, please if some can answer fast I'll very appreciate Thanks a lot you guys ! And by the way very beautiful template !
your thumbnails are there! or the original ones used from the downloaded template. perhaps drop your thumbnails in the same folder as those but keep the same names?

26

Friday, July 23rd 2010, 8:42pm

scratch the problem!

dont know what it was, but there was something wrong in the gallery1.xml

Turix

Beginner

Posts: 9

Location: Azerbaijan

  • Send private message

27

Tuesday, November 9th 2010, 8:26am

onover thumb

Hello,
Please, help me : What I must do for not enlarging the thumb, when I onover the mouse.

http://360.gradient.az/cd_promo/index.html

Similar threads