You are not logged in.

zyON

Trainee

  • "zyON" started this thread

Posts: 70

Location: Lisboa, Portugal

  • Send private message

1

Monday, February 27th 2012, 6:02pm

Problem with scenes in the Flash version (HTML5/CSS version ok) of a virtual tour *SOLVEDª

I'm having this weird problem. Everything runs ok in the HTML5/CSS version of the virtual tour, but when I load it in Chrome or Firefox (via the SWF) it only loads one of the scenes (03-sala). When I use

Source code

1
trace(scene.count)
the result is 1, and not 3 like it should.

Here's the simple code I'm using:

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
 <krpano version="1.0.8.14" onstart="start()">  
    <scene name="01-entrada" onstart="">
    	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.4" fovmax="120" />
    	<preview type="CUBESTRIP" url="01-entrada.tiles/preview.jpg" />
    	<image>
			<cube url="01-entrada.tiles/pano_%s.jpg" />
			<tablet>
				<cube url="01-entrada.tiles/t-pano_%s.jpg" />
			</tablet>  
		</image>
    </scene>     
    <scene name="02-hall" onstart="">
    	<view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.4" fovmax="120" />
    	<preview type="CUBESTRIP" url="02-hall.tiles/preview.jpg" />
    	<image>
			<cube url="02-hall.tiles/pano_%s.jpg" />
			<tablet>
				<cube url="02-hall.tiles/t-pano_%s.jpg" />
			</tablet>
		</image>
    </scene>  
	<scene name="03-sala" onstart="">
		<view hlookat="0" vlookat="0" fovtype="MFOV" fov="100" maxpixelzoom="1.4" fovmax="120" />
	   	<preview type="CUBESTRIP" url="03-sala.tiles/preview.jpg" />
	   	<image>
			<cube url="03-sala.tiles/pano_%s.jpg" />
			<tablet>
				<cube url="03-sala.tiles/t-pano_%s.jpg" />
			</tablet>
	   	</image>
	</scene>
	<!-- ############################      Actions     ############################ -->
	<action name="start">
		if(startscene === null, set(startscene,get(scene[2].name)) );
		loadscene(get(startscene), null, MERGE); 
		trace(scene.count);
	</action>
	<action name="changescene">
		loadscene(%1, null, MERGE);
	</action>
	<!-- ############################ Default Settings ############################ -->
	<progress showload="none" showwait="none"/>
	<display movequality="BEST" stillquality="BEST" movequality10="BEST" stillquality10="BEST" />
	<control mouseaccelerate="2" mousespeed="10" mousefriction="0.6" mousefovchange="0.3"/>
</krpano>


The tour is being loaded with embedpano like this:

Source code

1
2
3
	<script>
		embedpano({swf:"tour.swf", xml:"tour.xml", target:"panodiv", wmode: 'opaque', useHTML5: 'whenpossible'});
	</script>


Maybe a fresh pair of eyes can spot the problem...

I'm using build 2012-01-25.

Thanks,
––––•(-• zyON •-)•––––

This post has been edited 1 times, last edit by "zyON" (Feb 27th 2012, 6:29pm)


2

Monday, February 27th 2012, 6:08pm

Hi,

<scene name="01-entrada" onstart="">
<scene name="02-hall" onstart="">
<scene name="03-sala" onstart="">

using number as names, or more detailed - using names that were starting with a number are not possible/allowed in krpano and lead to miss-functions, because in this case the number is interpreted as 'index',

see here:
http://krpano.com/docu/xml/#name-notes

best regards,
Klaus

zyON

Trainee

  • "zyON" started this thread

Posts: 70

Location: Lisboa, Portugal

  • Send private message

3

Monday, February 27th 2012, 6:28pm

Klaus,

Thanks. That's it.
––––•(-• zyON •-)•––––