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

Saturday, March 13th 2010, 2:09am

Flyout video controled by another hotspot/button?

Tried to rework the official example of flyout video to start up with a click on a hotspot but quickly got nowhere.
It doesn't even flyout.
Any suggestions?

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<hotspot name="caller" ...
 onclick="if(get(hotspot[video].flying) == 0.0, flyout-video(video);hotspot[video].togglepause()  );
if(get(hotspot[video].flying) == 1.0, flyback-video(video);hotspot[video].togglepause()  )"
/ >
	<action name="flyout-video">
		copy(hotspot[%1].backup_rx,hotspot[%1].rx);            	
		copy(hotspot[%1].backup_ry,hotspot[%1].ry);            	
		copy(hotspot[%1].backup_rz,hotspot[%1].rz);            	
		copy(hotspot[%1].backup_scale,hotspot[%1].scale);      	
                              	
		tween(hotspot[%1].rx, 0);                              	
		tween(hotspot[%1].ry, 0);                              	
		tween(hotspot[%1].rz, 0);                              	
		tween(hotspot[%1].scale, 1.5);                              	
		tween(hotspot[%1].flying, 1.0);
		
	</action>

This post has been edited 1 times, last edit by "hitodenashi" (Mar 13th 2010, 3:14am)


2

Saturday, March 13th 2010, 3:39am

Ah got it figured out *whistling*

Source code

1
2
3
4
5
        	onclick="
	     						if(hotspot[video].flying == 0.0, 
	     							flyout-video(video);hotspot[video].togglepause());
	     						if(hotspot[video].flying == 1.0, 
	     							flyback-video(video);hotspot[video].togglepause())"


I was sure I have tried that before, oh well.

dany89vl

Beginner

Posts: 8

Location: Ramnicu Valcea | Sibiu , Romania

Occupation: Panoramas, Web Design, Graphics

  • Send private message

3

Saturday, March 13th 2010, 9:08am

Re:

Can you put a link to show us how is your video effect ?

4

Sunday, March 14th 2010, 10:59pm

RE: Re:

Can you put a link to show us how is your video effect ?
Not yet, but you can use my code and do it yourself.

esys

Intermediate

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

5

Monday, December 6th 2010, 5:39pm

Flyout video ?

Hi guys,

I'd like to do the same thing as you "dany89vl". Did you success ? *g*

Sorry "hitodenashi" but you gave us a quiet short explanation. Anyway too short for me..! *sad*


Thanks for your help.
Steph

Similar threads