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.

mds

Intermediate

  • "mds" started this thread

Posts: 152

Location: Athens, GA

Occupation: Designer

  • Send private message

1

Friday, June 10th 2011, 7:51pm

Dynamic Hotspot (keep = false)

I've got a <scene> with several dynamic hotspots being added.

Even though I'm trying to set the keep to false like this:

Source code

1
set(hotspot[right_2].keep, false);


The hotspots are staying constant in all scenes.

Any ideas?
Say "Hi!" on twitter

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Friday, June 10th 2011, 8:52pm

that code is correct without seeing more of the surrounding code it would be hard to say why.

mds

Intermediate

  • "mds" started this thread

Posts: 152

Location: Athens, GA

Occupation: Designer

  • Send private message

3

Friday, June 10th 2011, 9:01pm

here's a few more snippets

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
<scene name="scene_lounge" title="lounge" onstart="ceilingcycle();" thumburl="panos/lounge.tiles/thumb.jpg">

<action name="ceilingcycle">
     		if(xml.scene==scene_lounge,
     			if(isflash=="true",
     				delayedcall(3,	add_set_1(); );
     			);
     		);
     		removecycle();
 </action>
     	
 <action name="add_set_1">
     		if(xml.scene==scene_lounge,
	     		add_front_1();
	     		add_up_1();
	     		add_right_1();
	     		fade_set_1_in();
	     	);
	     	removecycle();
</action>

<action name="removecycle">
	     	if(xml.scene!=scene_lounge,
	     		delayedcall(.5,   remove_set_1();	);
	     		delayedcall(.5,   remove_set_2(); );
	     	);
 </action>
Say "Hi!" on twitter