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

Friday, November 9th 2012, 1:34am

cancel old mapSpot animations activated by another mapSpot

I created an additional mapSpot that is "invisible" that goes to another pano but activates another mapSpot animation that can be seen. The reason for this is that I want to be able to click an area next to the mapSpot in addition to the mapSpot. This works fine.

The problem that I'm having is that if I click the "invisible" mapSpot again, the animation on the visible mapSpot looks messed up. I think this is because it is reapplying the animation over the last animation. I've tried all kinds of things to stop it including this inside the pano's xml file:

Source code

1
2
3
4
5
6
7
8
9
10
    <action name="onxmlcompleteaction">
		set(plugin[mapspot6].frame           , 0);
		set(plugin[mapspot6].ypos            , 0);
		set(plugin[mapspot6].animationCounter, 0);
		set(plugin[mapspot6].blingCounter, 0);
		resetmapspot(mapspot6);
		
		unselectmapspotsbutpassed();
		selectmapspot(mapspot6,175);
	</action>