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.

JPC

Beginner

  • "JPC" started this thread

Posts: 40

Location: Paris

Occupation: Photographies and media

  • Send private message

1

Monday, August 23rd 2010, 10:43pm

stop action from a tween when change the pano

Hi maybe somebody had already this problem


i have tween of view in a pano, if the tween is not finished he continue on the next pano, even after some other tween.

i dont want to use the "wait" argument because i would like to preserve all the fonctionality exept of course the direction of tween during it.


Thank you of your answer. *whistling*

2

Tuesday, August 24th 2010, 1:21pm

Hi,

there is a stoptween(var) action,
call it with the name of the variable that is currently tweening,

e.g.

Source code

1
2
3
tween(view.hlookat, ....);
...
stoptween(view.hlookat);


best regards,
Klaus

JPC

Beginner

  • "JPC" started this thread

Posts: 40

Location: Paris

Occupation: Photographies and media

  • Send private message

3

Friday, August 27th 2010, 1:07am

Thankyou very much

unfortunetly i tested it and it dont works

i dont see what the error is.


this my code

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<hotspot name="spot0" handcursor="false" url="biodiversite02010data/graphics/videoplayer.swf" videourl="biodiversite02010data/graphics/spots/gillesclement1-1500.mp4" loop="true"
	 directionalsound="true" 
range="360" 

onloaded="set(plugin[play].visible,false); set(plugin[pause].visible,true);

delayedcall(40,tween(view.fov,140,30,easeInOutSine))"
	 

	 onvideocomplete="tween(alpha, 0);delayedcall(0.5,set(visible,false)) ;set(autorotate.enabled,true);set(plugin[play].visible,true); set(plugin[pause].visible,false);" distorted="true" ath="30" atv="5" width="300" height="300" rx="0" ry="0" rz="0" capture="false"/>

 <plugin name="nextobject" visible="true" onout="set(blendmode,screen);" onhover="set(blendmode,add);showtext(sc√čne suivante);" url="biodiversite02010data/graphics/spots/next.png" align="leftbottom" x="180" y="8" width="prop" height="15"
 
onclick=

"stoptween(view.fov);


loadpano(biodiversite0201014.xml,NULL,NULL,BLEND(1))"/>


thank you

This post has been edited 1 times, last edit by "JPC" (Aug 27th 2010, 2:16pm)


4

Friday, September 3rd 2010, 10:15am

Hi,

it would stop the tween itself but not the delayedcall,
maybe this is the problem?

a delayedcall itself can't be stopped,
but you could set a kind of variable that tells the delayedcall when happen
that it has been stopped,

e.g. do:

Source code

1
2
set(stopdelayedcall,true);
stoptween(view.fov); 

... and ...

Source code

1
delayedcall( if(stopdelayedcall!=true, tween(view.fov, ...) ) ); 


best regards,
Klaus

JPC

Beginner

  • "JPC" started this thread

Posts: 40

Location: Paris

Occupation: Photographies and media

  • Send private message

5

Friday, September 3rd 2010, 8:07pm

Thank you,


in fact i ever tested without the delayedcall, bur it doesn't work, so i keep this code for when i'll resolve this second problem, i will do a serial of test more simple and
complex the code progressively to determinate the problem, and ll tell you the result.

For the moment i will test a scenario with an some action this weekend, because i need a solution for my project.


Thank you again.