You are not logged in.

mstoss

Intermediate

  • "mstoss" started this thread

Posts: 287

Location: Berlin

  • Send private message

1

Wednesday, May 5th 2010, 1:26pm

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

Source code

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

Friday, May 7th 2010, 1:17pm

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

mstoss

Intermediate

  • "mstoss" started this thread

Posts: 287

Location: Berlin

  • Send private message

3

Friday, May 7th 2010, 9:26pm

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

www.premiumpano.de/testing/object

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
	<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

Friday, May 7th 2010, 9:59pm

Hi,

just:

Source code

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

mstoss

Intermediate

  • "mstoss" started this thread

Posts: 287

Location: Berlin

  • Send private message

5

Monday, May 10th 2010, 12:45pm

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

Monday, May 10th 2010, 1:14pm

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.:

Source code

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

mstoss

Intermediate

  • "mstoss" started this thread

Posts: 287

Location: Berlin

  • Send private message

7

Monday, May 10th 2010, 1:46pm

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.:

Source code

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

Monday, May 10th 2010, 1:49pm

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