You are not logged in.

1

Friday, November 30th 2018, 2:49pm

help to convert swf to html5

Hello!! I am developing a website, which has a swf project made with Krpano. Is it possible to convert this project to html5?
I clarify that I do not have krpano licence.

the web with the swf version is: https://casinovictoriaplaza.com.uy/

thank you.!!

Regards
Martin

This post has been edited 1 times, last edit by "martinmvd" (Nov 30th 2018, 3:03pm)


spacerywirtualne

Professional

Posts: 907

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Friday, November 30th 2018, 7:28pm

Welcome Martin
Is it possible to convert this project to html5?
Yes. It's possible. It's quite simple.
I clarify that I do not have krpano licence.
If you want to do it yourself, you need a krpano license. You can also outsource this service to someone who already has a license. There are a lot of people in this forum that can do it for you, including me. *squint*

regards
Piotr
Your own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube

cms4vr team *thumbsup*

3

Wednesday, January 30th 2019, 9:46am

Hi,

Some tip would be usefull.
I have tours created in Kolor PnotourPro and that is based on old Krpano.
Did manage to update tour to lastest 1.19.pr16 but I had to delete map. I was getting error about mapspot

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
<?xml version="1.0" encoding="UTF-8"?>
<!-- for xml compliance -->
<!-- Generated By Kolor Panotour 1.8.0 -->
<krpano version="1.0.8.14" logkey="false">
    <action name="mainloadpano">
		closepanoobjects();
		ifnot(stopSequence === undefined,interruptAnimation(););
		loadpano(%1,NULL,NULL,BLEND(1));
	</action>
    <!--************** KrPano plugins and datas ***************************************************-->
    <plugin name="data" keep="true"/>
    <!--************** Open the first pano ********************************************************-->
    <include url="virtualtour0.xml"/>
    <autorotate enabled="false"/>
    <!--************** Fonts **********************************************************************-->
    <textstyle name="DEFAULT" bold="false" font="Arial Narrow" fontsize="16" italic="false" textcolor="0xff000000"/>
    <!--************** Logos **********************************************************************-->
    <plugin name="logo6" url="logo6.jpg" keep="true" align="leftbottom" x="15" y="15" width="15%" height="12%" handcursor="false" capture="false"/>
    <!--************** NADIR *******************************************************************-->
    <!--************** Links *******************************************************************-->
	<include url="plugins/Links.xml"/>
	<!--************** Przyciski***********************************************************************-->
	<include url="plugins/buttons-png-include.xml"/>
	<!--************** Projection Context menu***********************************************************************-->
	<include url="plugins/projections-contextmenu.xml"/>
    <!--************** Menu ***********************************************************************-->
    <plugin name="in" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(fov_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="virtualtourdata/graphics/menu/menu0.png" width="40" x="-160" y="15"/>
    <plugin name="out" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(fov_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(fov_moveforce,0);" url="virtualtourdata/graphics/menu/menu1.png" width="40" x="-120" y="15"/>
    <plugin name="left" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(hlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="virtualtourdata/graphics/menu/menu2.png" width="40" x="-80" y="15"/>
    <plugin name="right" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(hlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(hlookat_moveforce,0);" url="virtualtourdata/graphics/menu/menu3.png" width="40" x="-40" y="15"/>
    <plugin name="up" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(vlookat_moveforce,-1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="virtualtourdata/graphics/menu/menu4.png" width="40" x="0" y="15"/>
    <plugin name="down" align="bottom" crop="0|0|65|65" height="prop" keep="true" ondown="set(vlookat_moveforce,+1);" onout="" onover="" onovercrop="0|65|65|65" onup="set(vlookat_moveforce,0);" url="virtualtourdata/graphics/menu/menu5.png" width="40" x="40" y="15"/>
    <plugin name="home" align="bottom" crop="0|0|65|65" height="prop" keep="true" onclick="lookto(get(panoview.h),get(panoview.v),get(panoview.fov),smooth(100,20,50));" onout="" onover="" onovercrop="0|65|65|65" url="virtualtourdata/graphics/menu/menu6.png" width="40" x="80" y="15"/>
    <plugin name="openfs" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,true);" onout="" onover="" onovercrop="0|65|65|65" url="virtualtourdata/graphics/menu/menu7.png" width="40" x="120" y="15"/>
    <plugin name="closefs" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="set(fullscreen,false);" onout="" onover="" onovercrop="0|65|65|65" url="virtualtourdata/graphics/menu/menu8.png" visible="false" width="40" x="120" y="15"/>
    <plugin name="autorotationON" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationON].visible,false); set(plugin[autorotationOFF].visible,true);" onout="" onover="" onovercrop="0|65|65|65" url="virtualtourdata/graphics/menu/menu9.png" visible="" width="40" x="160" y="15"/>
    <plugin name="autorotationOFF" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true" onclick="switch(autorotate.enabled);set(plugin[autorotationOFF].visible,false); set(plugin[autorotationON].visible,true);" onovercrop="0|65|65|65" url="virtualtourdata/graphics/menu/menu10.png" visible="" width="40" x="160" y="15"/>
    <events onenterfullscreen="set(plugin[openfs].visible,false); set(plugin[closefs].visible,true);" onexitfullscreen="set(plugin[openfs].visible,true); set(plugin[closefs].visible,false);"/>
    <!--************** Lista panoram **************************************************************-->
    <plugin name="combobox" url="virtualtourdata/graphics/combobox.swf" preload="true" keep="true" align="righttop" x="15" y="15" rowcount="10">
        <item name="combobox0" caption="Panorama_001" onClick="mainloadpano(virtualtour0.xml);"/>
        <item name="combobox1" caption="Panorama_002" onClick="mainloadpano(virtualtour1.xml);"/>
        <item name="combobox2" caption="Panorama_003" onClick="mainloadpano(virtualtour2.xml);"/>
        <item name="combobox3" caption="Panorama_004" onClick="mainloadpano(virtualtour3.xml);"/>
        <item name="combobox4" caption="Panorama_005" onClick="mainloadpano(virtualtour4.xml);"/>
        <item name="combobox5" caption="Panorama_006" onClick="mainloadpano(virtualtour5.xml);"/>
        <item name="combobox6" caption="Panorama_007" onClick="mainloadpano(virtualtour6.xml);"/>
    </plugin>
    <!--************** Plugin Mapa ****************************************************************-->
    <plugin name="map" url="virtualtourdata/map/map.jpg" keep="true" align="lefttop" x="15" y="15" width="10%" height="10%" handcursor="false" onloaded="hidemapspot();" onclick="openmap"/>
    <plugin keep="true" visible="false" name="mapspot0" hview="0" vview="0" fovview="90" hcenter="" vcenter="" onclick="mainloadpano(virtualtour0.xml);lookat(get(hview),get(vview),get(fovview));" url="virtualtourdata/graphics/spots/spot0.png" blingCounter="0" align="lefttop" edge="center" parent="map" x="19.244%" y="28.9211%"/>
    <plugin keep="true" visible="false" name="mapspot1" hview="0" vview="0" fovview="90" hcenter="" vcenter="" onclick="mainloadpano(virtualtour1.xml);lookat(get(hview),get(vview),get(fovview));" url="virtualtourdata/graphics/spots/spot0.png" blingCounter="0" align="lefttop" edge="center" parent="map" x="17.4811%" y="26.611%"/>
    <plugin keep="true" visible="false" name="mapspot2" hview="0" vview="0" fovview="90" hcenter="" vcenter="" onclick="mainloadpano(virtualtour2.xml);lookat(get(hview),get(vview),get(fovview));" url="virtualtourdata/graphics/spots/spot0.png" blingCounter="0" align="lefttop" edge="center" parent="map" x="18.6669%" y="31.9809%"/>
    <plugin keep="true" visible="false" name="mapspot3" hview="0" vview="0" fovview="90" hcenter="" vcenter="" onclick="mainloadpano(virtualtour3.xml);lookat(get(hview),get(vview),get(fovview));" url="virtualtourdata/graphics/spots/spot0.png" blingCounter="0" align="lefttop" edge="center" parent="map" x="19.8323%" y="30.3401%"/>
    <plugin keep="true" visible="false" name="mapspot4" hview="0" vview="0" fovview="90" hcenter="" vcenter="" onclick="mainloadpano(virtualtour4.xml);lookat(get(hview),get(vview),get(fovview));" url="virtualtourdata/graphics/spots/spot0.png" blingCounter="0" align="lefttop" edge="center" parent="map" x="17.354%" y="17.7323%"/>
    <plugin keep="true" visible="false" name="mapspot5" hview="0" vview="0" fovview="90" hcenter="" vcenter="" onclick="mainloadpano(virtualtour5.xml);lookat(get(hview),get(vview),get(fovview));" url="virtualtourdata/graphics/spots/spot0.png" blingCounter="0" align="lefttop" edge="center" parent="map" x="19.0722%" y="15.984%"/>
    <plugin keep="true" visible="false" name="mapspot6" hview="0" vview="0" fovview="90" hcenter="" vcenter="" onclick="mainloadpano(virtualtour6.xml);lookat(get(hview),get(vview),get(fovview));" url="virtualtourdata/graphics/spots/spot0.png" blingCounter="0" align="lefttop" edge="center" parent="map" x="18.5911%" y="13.5365%"/>
    <plugin name="mapradar" parent="map" edge="center" align="lefttop" keep="true" url="virtualtourdata/map/radar.swf" visible="false" width="150" height="150" linecolor="0xffffff" linealpha="0.494118" linewidth="2" fillcolor="0x00ff00" fillalpha="0.494118"/>
    <action name="showmapspot">
		set(  plugin[mapspot0].alpha  , 0);
		set(  plugin[mapspot0].visible, true);
		tween(plugin[mapspot0].alpha  , 1);
		set(  plugin[mapspot1].alpha  , 0);
		set(  plugin[mapspot1].visible, true);
		tween(plugin[mapspot1].alpha  , 1);
		set(  plugin[mapspot2].alpha  , 0);
		set(  plugin[mapspot2].visible, true);
		tween(plugin[mapspot2].alpha  , 1);
		set(  plugin[mapspot3].alpha  , 0);
		set(  plugin[mapspot3].visible, true);
		tween(plugin[mapspot3].alpha  , 1);
		set(  plugin[mapspot4].alpha  , 0);
		set(  plugin[mapspot4].visible, true);
		tween(plugin[mapspot4].alpha  , 1);
		set(  plugin[mapspot5].alpha  , 0);
		set(  plugin[mapspot5].visible, true);
		tween(plugin[mapspot5].alpha  , 1);
		set(  plugin[mapspot6].alpha  , 0);
		set(  plugin[mapspot6].visible, true);
		tween(plugin[mapspot6].alpha  , 1);
	</action>
    <action name="hidemapspot">
		set(plugin[mapspot0].visible,false);
		set(plugin[mapspot1].visible,false);
		set(plugin[mapspot2].visible,false);
		set(plugin[mapspot3].visible,false);
		set(plugin[mapspot4].visible,false);
		set(plugin[mapspot5].visible,false);
		set(plugin[mapspot6].visible,false);
	</action>
    <!-- zamknij mapę -->
    <action name="closemap">
		set(plugin[mapradar].visible,false);
		hidemapspot();
		set(plugin[map].onclick,openmap);
		tween(plugin[map].width , 10%);
		tween(plugin[map].height, 10%);
	</action>
    <!-- otwórz mapę -->
    <action name="openmap">
		if(plugin[mapradar].shouldbevisible == true, set(plugin[mapradar].visible,true););
		set(plugin[map].onclick, closemap);
		tween(plugin[map].height, 50%, 0.5, easeoutquad);
		tween(plugin[map].width , 50%, 0.5, easeoutquad, showmapspot(););
		set(plugin[map].align, lefttop);
		set(plugin[map].x    , 15);
		set(plugin[map].y    , 15);
	</action>
    <!-- Odznacz wszystkie Hotspoty za wyjątkiem zgodnych z podanym argumentem -->
    <!-- Odznacz wszystkie Hotspoty za bez podanego argumentu -->
    <action name="unselectmapspotsbutpassed">
		set(plugin[mapradar].visible        , false);
		set(plugin[mapradar].shouldbevisible, false);
		if (%1 != mapspot0,
				if(plugin[mapspot0].animated,
				set(plugin[mapspot0].frame           , 0);
				set(plugin[mapspot0].ypos            , 0);
				set(plugin[mapspot0].animationCounter, 0)
				txtadd(plugin[mapspot0].crop,'0|0|',get(plugin[mapspot0].framewidth),'|',get(plugin[mapspot0].frameheight));
			,
				set(plugin[mapspot0].blingCounter, 0)
			)
		);
		resetmapspot(mapspot0);
		if (%1 != mapspot1,
				if(plugin[mapspot1].animated,
				set(plugin[mapspot1].frame           , 0);
				set(plugin[mapspot1].ypos            , 0);
				set(plugin[mapspot1].animationCounter, 0)
				txtadd(plugin[mapspot1].crop,'0|0|',get(plugin[mapspot1].framewidth),'|',get(plugin[mapspot1].frameheight));
			,
				set(plugin[mapspot1].blingCounter, 0)
			)
		);
		resetmapspot(mapspot1);
		if (%1 != mapspot2,
				if(plugin[mapspot2].animated,
				set(plugin[mapspot2].frame           , 0);
				set(plugin[mapspot2].ypos            , 0);
				set(plugin[mapspot2].animationCounter, 0)
				txtadd(plugin[mapspot2].crop,'0|0|',get(plugin[mapspot2].framewidth),'|',get(plugin[mapspot2].frameheight));
			,
				set(plugin[mapspot2].blingCounter, 0)
			)
		);
		resetmapspot(mapspot2);
		if (%1 != mapspot3,
				if(plugin[mapspot3].animated,
				set(plugin[mapspot3].frame           , 0);
				set(plugin[mapspot3].ypos            , 0);
				set(plugin[mapspot3].animationCounter, 0)
				txtadd(plugin[mapspot3].crop,'0|0|',get(plugin[mapspot3].framewidth),'|',get(plugin[mapspot3].frameheight));
			,
				set(plugin[mapspot3].blingCounter, 0)
			)
		);
		resetmapspot(mapspot3);
		if (%1 != mapspot4,
				if(plugin[mapspot4].animated,
				set(plugin[mapspot4].frame           , 0);
				set(plugin[mapspot4].ypos            , 0);
				set(plugin[mapspot4].animationCounter, 0)
				txtadd(plugin[mapspot4].crop,'0|0|',get(plugin[mapspot4].framewidth),'|',get(plugin[mapspot4].frameheight));
			,
				set(plugin[mapspot4].blingCounter, 0)
			)
		);
		resetmapspot(mapspot4);
		if (%1 != mapspot5,
				if(plugin[mapspot5].animated,
				set(plugin[mapspot5].frame           , 0);
				set(plugin[mapspot5].ypos            , 0);
				set(plugin[mapspot5].animationCounter, 0)
				txtadd(plugin[mapspot5].crop,'0|0|',get(plugin[mapspot5].framewidth),'|',get(plugin[mapspot5].frameheight));
			,
				set(plugin[mapspot5].blingCounter, 0)
			)
		);
		resetmapspot(mapspot5);
		if (%1 != mapspot6,
				if(plugin[mapspot6].animated,
				set(plugin[mapspot6].frame           , 0);
				set(plugin[mapspot6].ypos            , 0);
				set(plugin[mapspot6].animationCounter, 0)
				txtadd(plugin[mapspot6].crop,'0|0|',get(plugin[mapspot6].framewidth),'|',get(plugin[mapspot6].frameheight));
			,
				set(plugin[mapspot6].blingCounter, 0)
			)
		);
		resetmapspot(mapspot6);
	</action>
    <!-- Wybierz Hotspot dla Mapy -->
    <action name="selectmapspot">
		unselectmapspotsbutpassed(%1);
		if(plugin[%1].animated,
			inc(plugin[%1].animationCounter, 1);
			if(plugin[%1].animationCounter == 1,
				animatemapspot(%1, 0.1);
			);
		,
			inc(plugin[%1].blingCounter,1);
			if(plugin[%1].blingCounter == 1,
				blingmapspot(%1);
			);
		);
		copy(plugin[mapradar].x              , plugin[%1].x);
		copy(plugin[mapradar].y              , plugin[%1].y);
		set( plugin[mapradar].heading        , %2          );
		set( plugin[mapradar].shouldbevisible, true        );
		if(plugin[map].onclick == closemap, set(plugin[mapradar].visible,true););
	</action>
    <!-- miganie aktualnie wybranego hotspotu -->
    <action name="blingmapspot">
		tween(plugin[%1].alpha, 0.0, 0.8, easeInSine  );
		tween(plugin[%1].scale, 1.5, 0.8, easeOutCubic);
		tween(, , 0.8, , resetmapspot(%1);
		if(plugin[%1].blingCounter &gt; 0, blingmapspot(%1);););
	</action>
    <action name="resetmapspot">
		set(plugin[%1].scale,1);
		set(plugin[%1].alpha,1);
	</action>
    <!--************** Animacja *******************************************************************-->
    <action name="animate">
		if (stopSequence == false,
			inc(hotspot[%1].frame,1,get(hotspot[%1].lastframe),0);
			mul(hotspot[%1].ypos,hotspot[%1].frame,hotspot[%1].frameheight);
			txtadd(hotspot[%1].crop,'0|',get(hotspot[%1].ypos),'|',get(hotspot[%1].framewidth),'|',get(hotspot[%1].frameheight));
			delayedcall(%2, animate(%1,%2) );
		);
	</action>
    <!-- Raise sequence stopper and wait sequence time to break the delayed calls -->
    <action name="interruptAnimation">
		ifnot (stopSequence === undefined,
			set(stopSequence, true);
			wait(0.1);
		);
	</action>
</krpano>



When I delete everything related to Map, I can display my tour but still in Flash player.

In virtualtour.html file I change html5 to only but it does not solve the problem. What am I missing? The best would be to keep the map of course.

Source code

1
2
3
4
5
6
7
8
9
10
	<script>
		embedpano({
			swf:"tour.swf", 
			xml:"tour.xml", 
			target:"pano", 
			html5:"only", 
			passQueryParameters:true,
			consolelog:false
		});
	</script>