You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Wednesday, January 20th 2010, 11:26pm

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

Source code

1
<scene name="scene1">


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

Source code

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

Source code

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


... but it doesn't work.

Any suggestions?

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

2

Thursday, January 21st 2010, 12:33am

Hi,

Try:

Source code

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


SAlut.

3

Thursday, January 21st 2010, 12:44am

Hi Michel,

Thanks, but that doesn't work.

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

Source code

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

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

4

Thursday, January 21st 2010, 1:15am

Hi,

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

Source code

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.

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

5

Thursday, January 21st 2010, 2:54am

Hi,

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

SAlut.