You are not logged in.

Andrey_K

Beginner

  • "Andrey_K" started this thread

Posts: 36

Location: Ukraine

Occupation: photographer

  • Send private message

1

Thursday, April 21st 2011, 11:41am

swfkrpano.js - does not work in offline ...

Hello!
There is a problem - in the offline does not work zoom mouse wheel (in the on-line, it works fine link). In what may be my bug?

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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="1.css" rel="stylesheet" type="text/css" />

<script  src="Scripts/swfkrpano.js"></script></head>

<body>


<div id="main"><img src="background1.jpg" alt="" width="941" height="1985" />
<div id="pano"><noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>

</div>
<script type="text/javascript">
		
		var swf = createswf("krpano.swf", "krpanoSWFObject1", "941", "350");
		swf.addParam("wmode","transparent");
		swf.addVariable("xml", "krpano.xml");
		swf.embed("pano");
		
		
	</script>    
</div>
</body>
</html>

2

Thursday, April 21st 2011, 11:37pm

Hi,
swf.addParam("wmode","transparent");
when using wmode=transparent or wmode=opauqe then the Flashplayer is not longer able to catch the mousewheel,
but the krpano scripts (the swfkrpano.js or the swfkrpanomousewheel.js) are fixing this problem by catching the mousewheel events by javascript and sending the flashplayer (krpano) that there were mouse wheel changes,

but now locally - the javascript to flash interface - is disabled by default for security reasons, so the javascript mousewheel fixes can't work,

to get it working locally it would be necessary to change the flashplayer security settings,
see here for more details:
http://krpano.com/docu/localusage/

best regards,
Klaus

Andrey_K

Beginner

  • "Andrey_K" started this thread

Posts: 36

Location: Ukraine

Occupation: photographer

  • Send private message

3

Friday, April 22nd 2011, 7:20am

Here are it turns out that ... I thought that I have "hands curves" - 2 days tormented ...
Now everything works! Thank you, Klaus! *g*
Sometimes i have make CD presentation using HTML and in connection with this question: "How can I compel work mouse wheel in the panorama window (in offline), without setting the permissions on the site Adobe? "