Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

1

Mittwoch, 5. Mai 2010, 13:26

open VR Object

Hi folks,

How are the basics of including an object vr (SWF) into a panorama? Shall pop up by clicking on a hotspot. Read only about textfield plugin use and can not see how to do this.

What I did is simply add a

Quellcode

1
2
<plugin name="tasche"
	     	url="icons/tasche.swf"...


clicking on a hotspots to open the object movie opens it ... in the upper left corner with the center being the 0/0 position, so most of it is hidden outside, don't know why.

Any help appreciated very much

Michael

2

Freitag, 7. Mai 2010, 13:17

Hi,

there are no basics of embedding a object vr swf,
it always depends on the swf itself how and if it will work...

do you maybe have an example swf?

best regards,
Klaus

3

Freitag, 7. Mai 2010, 21:26

Ok, I uploaded my first test. A bit strange I think. The object is created using Object2VR.

www.premiumpano.de/testing/object

Quellcode

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
	<hotspot name="img_tasche"
	     	url="icons/tasche.png"
	     	keep="false"
	     	ath="216.08893401125204" atv="5.703608146902612"
	     	zoom="false" distorted="true"
	     	width="190" height="290"
	     	scale="0.25" scale9grid="" scalechildren="false" rotate="0"
	     	rx="0" ry="0" rz="0"
	     	edge="center" ox="" oy=""
	     	crop="" ondowncrop="" onovercrop=""
	     	visible="true" enabled="true" handcursor="true" capture="true" children="true"
 	     	zorder="2"
	     	alpha="1.00" blendmode="normal" smoothing="true"
 	     	refreshrate="auto"
 	     	onloaded=""
	     	onover=""
	     	onhover=""
	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick="set(plugin[tasche].alpha,1)"
	     	details="8"
	     	effect=""
	     	flying="0"
	     	inverserotation="false"
	     	/>


	<plugin name="tasche"
	     	url="icons/tasche.swf"
	     	keep="false"
	     	ath="200" atv="0"
	     	zoom="false" distorted="false"
	     	width="420" height="540"
	     	scale="1" scale9grid="" scalechildren="false" rotate="0"
	     	rx="0" ry="0" rz="0"
	     	edge="center" ox="" oy=""
	     	crop="" ondowncrop="" onovercrop=""
	     	visible="true" enabled="false" handcursor="true" capture="true" children="true"
 	     	zorder="0"
	     	alpha="0.00" blendmode="normal" smoothing="true"
 	     	refreshrate="auto"
 	     	onloaded=""
	     	onover=""
	     	onhover=""
	     	onout=""
	     	ondown=""
	     	onup=""
	     	onclick=""
	     	inverserotation="false"
	     	/>


Thank you for any comments :-)

Yours,
Michael

4

Freitag, 7. Mai 2010, 21:59

Hi,

just:

Quellcode

1
<plugin name="ovr" url="tasche.swf" align="center" />


should work, but not very well...
the swf is listen to the global (=stage) mousewheel events,
and it changes the flashplayer scaling settings...
so the result will not be usable...

best regards,
Klaus

5

Montag, 10. Mai 2010, 12:45

Oh, well, I'm an idiot. At least the basics of placing an object on the screen should have been known to me... *unsure*

So, I updated the project (http://www.premiumpano.de/testing/object) but the main problem is moving the object independently from the panorama. Klaus, are you saying, that this problem can not be solved?

Yours,
Michael

6

Montag, 10. Mai 2010, 13:14

Hi,
Klaus, are you saying, that this problem can not be solved?
it should be possible to disable the krpano movement when the mouse was over the object,
and enable it again when the mouse moves out of it,

e.g.:

Quellcode

1
2
3
4
5
<plugin ...
      	onover="set(control.usercontrol,off);"
      	onout="set(control.usercontrol,all);"
      	...
/>


but the other way - stopping the movement in the object when there is a movement
in the pano is not possible, because the object is listen to the mouse events by it's own,

but I think the much problem is, that the object movie changes the flashplayer scaling,
that can't be fixed from krpano,

best regards,
Klaus

7

Montag, 10. Mai 2010, 13:46

Hi,
Klaus, are you saying, that this problem can not be solved?
it should be possible to disable the krpano movement when the mouse was over the object,
and enable it again when the mouse moves out of it,

e.g.:

Quellcode

1
2
3
4
5
<plugin ...
      	onover="set(control.usercontrol,off);"
      	onout="set(control.usercontrol,all);"
      	...
/>


but the other way - stopping the movement in the object when there is a movement
in the pano is not possible, because the object is listen to the mouse events by it's own,

but I think the much problem is, that the object movie changes the flashplayer scaling,
that can't be fixed from krpano,

best regards,
Klaus
hm. onover/onout doesn't seem to work right now, but this can be solved somehow I guess and this would be just fine enough. I think it should be acceptable to have the object rotating when panning in the panorama. The Scaling issue.... is this the reason why I can see a second loading bar more to the left in the last few seconds before the loading process is completed?

Yours,
Michael

8

Montag, 10. Mai 2010, 13:49

The Scaling issue.... is this the reason why I can see a second loading bar more to the left in the last few seconds before the loading process is completed?
the whole flash window was scaled a bit from the left-top corner,
therefore everything is scaled and shifted to right-down,

best regards,
Klaus