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.

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

1

Tuesday, February 21st 2012, 2:19pm

Get hotspot flyout(); when sound finished ?

Hi,

I use a flyin out movement to display pictures in my tour and stick a sound with each. I'd like to get the picture flyout when sound is completed. I add flyout action

Source code

1
2
onclick="showpic(); wait(1); playsound(glaces, music/glaces.mp3, 1, flyout() ); set(hotspot[pic_glaces].visible, false);"
	        

It's not working! I guess it's because my hotspot is not named when flyout action is reached through an other var than clicking on the picture.
*thanks for any suggestion. *smile*
Steph.
Steph

2

Monday, February 27th 2012, 5:40pm

Hi,

it depends on the code in the flyin action,
when there the hotspot attributes were directly address, then calling this action as it is would be only possible by the hotspot itself,

to make it also callable from all other elements and events, address the hotspots attributes in the flyin action together with the hotspot name,

e.g. instead of just:
tween(flying, ...);
do
tween(hotspot[...].flying, ...);

best regards,
Klaus

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

3

Monday, February 27th 2012, 6:04pm

Hi Klaus,

Thanks, i'll do that.
By the way, is it possible to fly in and out the swf video player or other swf files (like slideshowpro player) with the same method ?

Thanks for your time. *thumbup*
Steph
Steph

4

Monday, February 27th 2012, 6:09pm

Hi,

with the krpano videoplayer plugin - yes,
with other swf files - that would depends on the other swf itself,

best regards,
Klaus

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

5

Wednesday, February 29th 2012, 2:33pm

Hi Klaus,

I've tried your method. Thing is i don't know which part of the action i've to replace. I started with flyin action, but all attributes are written like :
tween(hotspot[%1].flyin, 0.0); not tween(flyin, ...); so i replaced all hotspots attributes 1st arguments with my hotspot name, didn't work! I've tried only with this action, then with others, didn't work either!

I'm sorry to be such basic with code, but i would need enlightments more precise. Also for the swf video player plugin, which line should i replace to get my player fly in and out when called from a hotspot ?

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
	<!-- fly in a hotspot = show hotspot fixed at screen -->
	<action name="flyin">
		if(hotspot[%1].flying == 0.0, hotspot[%1].resetsize(); calc_flyout_size(%1); );
		if(hotspot[%1].oldscale === null, copy(hotspot[%1].oldscale, hotspot[%1].scale) );
		if(hotspot[%1].oldrx === null, copy(hotspot[%1].oldrx, hotspot[%1].rx) );
		if(hotspot[%1].oldry === null, copy(hotspot[%1].oldry, hotspot[%1].ry) );
		if(hotspot[%1].oldrz === null, copy(hotspot[%1].oldrz, hotspot[%1].rz) );
		set(hotspot[%1].enabled,true);
		set(hotspot[%1].visible,true);
		tween(hotspot[%1].alpha,  1.0);
		tween(hotspot[%1].flying, 1.0);
		tween(hotspot[%1].scale,  1.0);
		tween(hotspot[%1].rx, 0.0);
		tween(hotspot[%1].ry, 0.0);
		tween(hotspot[%1].rz, 0.0);
	</action>

Thanks for your time. *smile*
Steph.
Steph

6

Thursday, March 1st 2012, 6:17pm

Hi,

your 'flyin' looks okay in that way,
now just call it with the name of the hotspot that should be 'fly in',

e.g.
flyin(spot1);

best regards,
Klaus

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

7

Tuesday, March 6th 2012, 2:58pm

Hi klaus,

Thanks. Works great. *thumbsup*
The only "little" matter is i've to duplicate the same code but that's all.

Best regards.
Steph.
Steph