Sie sind nicht angemeldet.

1

Mittwoch, 20. Januar 2010, 23:26

Edit hotspot with flashvars

Hi,

I'd like to modify hotspots by using flashvars (so that a third party can modify my pano when they embed my pano into their website)

Lets say I've got a scene named "scene1"...

Quellcode

1
<scene name="scene1">


... and in that scene is a hotspot named "shop1...

Quellcode

1
2
3
4
5
6
7
8
9
<hotspot
name="shop1"
url="hotspot.png"
keep="false"
visible="true"
ath="180"
atv="90"
onclick="things"
/>


... how can I modify this by using flashvars? I tried this (using swfobject 2.2):

Quellcode

1
"krpano.hotspot[shop1].url":"http://photo40.nl/image.png"


... but it doesn't work.

Any suggestions?

2

Donnerstag, 21. Januar 2010, 00:33

Hi,

Try:

Quellcode

1
"hotspot[shop1].url":"http://photo40.nl/image.png"


SAlut.

3

Donnerstag, 21. Januar 2010, 00:44

Hi Michel,

Thanks, but that doesn't work.

I also tried this, but it doesn't work either:

Quellcode

1
"scene[scene1].hotspot[shop1].url":"http://photo40.nl/image.png"

4

Donnerstag, 21. Januar 2010, 01:15

Hi,

Yes... If I am not on mistake, I have read somewhere that the scene node only can be access to his content...

Quellcode

1
scene[scene1].content,some_content


Perhaps, instead of having your hotspot inside a scene, you would put it directly in the xml .. then, you could have access to him...

SAlut.

5

Donnerstag, 21. Januar 2010, 02:54

Hi,

Here a reference about the <scene> node above....
How do I access current scene attributes and nodes?

SAlut.