You are not logged in.

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

1

Friday, July 23rd 2010, 8:42am

SWF - FullScreen not working. need help.

Hi all? need your help.
Fullscreen - not working inly in single swf (krpanotools). Here is everything OK - tour
but after converting to single swf the fullscreen function is not working. Whats wrong?
swf - webpokaz.ru/media/vtours_vt/824031/824031.swf
Here is xml of fullscrenn function

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
<plugin name="fullscreenbtn1" url="fullscreen1.png"
	align="rightbottom" edge="rightbottom" x="7" y="7"
	enabled="true"
	visible="true"
	keep="true"
	alpha="0.5"
	scale="0.9"
	onover="tween(plugin[fullscreenbtn1].alpha, 1, distance(5,2), linear); tween(plugin[fullscreenbtn1].scale, 1, distance(5,2), linear);"
	onhover="showtext( Открыть на весь экран ,buttontext);"
	onout="tween(plugin[fullscreenbtn1].alpha, 0.5, distance(5,2), linear); tween(plugin[fullscreenbtn1].scale, 0.9, distance(5,2), linear);"
	onclick="set(fullscreen, true); set(plugin[fullscreenbtn1].visible, false);  set(plugin[fullscreenbtn2].visible, true);"
	/>
<plugin name="fullscreenbtn2" url="fullscreen2.png"
	align="rightbottom" edge="rightbottom" x="7" y="7"
	enabled="true"
	visible="false"
	keep="true"
	alpha="0.5"
	scale="1.1"
	onover="tween(plugin[fullscreenbtn2].alpha, 1, distance(5,2), linear); tween(plugin[fullscreenbtn2].scale, 1.2, distance(5,2), linear);"
	onhover="showtext( Закрыть ,buttontext);"
	onout="tween(plugin[fullscreenbtn2].alpha, 0.5, distance(5,2), linear); tween(plugin[fullscreenbtn2].scale, 1.1, distance(5,2), linear);"
	onclick="set(fullscreen, false); set(plugin[fullscreenbtn1].visible, true);  set(plugin[fullscreenbtn2].visible, false);"
	/>
<events onenterfullscreen="set(plugin[fullscreenbtn1].visible, false);  set(plugin[fullscreenbtn2].visible, true);"
			onexitfullscreen="set(plugin[fullscreenbtn1].visible, true);  set(plugin[fullscreenbtn2].visible, false);"
			/>
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

2

Friday, July 23rd 2010, 9:11am

I think you should give link not directly to the swf file, but put the swf into html like below for example:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<html>
<head>
</head>
<script type="text/javascript" src="swfobject21/swfobject.js"></script>
<script type="text/javascript" src="swfobject21/swfkrpanomousewheel.js"></script>
<script type="text/javascript">

// <![CDATA[	
if (swfobject.hasFlashPlayerVersion("6.0.0")) {swfobject.embedSWF("yourpano.swf", "krpanodiv","100%", "100%", "9.0.28", "swfobject21/expressinstall.swf", {}, {allowfullscreen:true, bgcolor:"#FFFFFF"}, { id:'krpanoSWFObject1', name:'krpanoSWFObject1' }); swfkrpanomousewheel.registerObject("krpanoSWFObject1");
} 
else { document.getElementById("krpanodiv").innerHTML = 'Please, Install Adobe Flash Player<br/><a href="http://www.adobe.com/go/getflashplayer/"  target="_blank"><IMG SRC="http://www.macromedia.com/images/shared/download_buttons/get_flash_player.gif" BORDER="1"></a><';
} 
// ]]> 
</script>
</head>
<body style="margin:0px;">
<div id="krpanodiv">
<noscript>Please, allow Javascript<br/>
</noscript>
</div>
</body>
</html>

Regards
Greg

3

Friday, July 23rd 2010, 9:15am

Hi,

right, it's the "allowFullscreen" setting/parameter, which must be set during embedding the swf to the html,

best regards,
Klaus

mindlessboss

Professional

  • "mindlessboss" started this thread

Posts: 1,082

Location: Russia, Kaliningrad

  • Send private message

4

Sunday, July 25th 2010, 6:18pm

Thanks! for answers...
solution is - "allowfullscreen:true"

Andrew.
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN