PDA

View Full Version : multiple pano load sequence with delay?


image360
11-29-2009, 07:29 PM
Trying to load a set of 4 pano's one after another when a viewer clicks on a hotspot.

After looking at the tutorial info and searching the forum I thought I would try what seems like a very simple example (taken from the FPP documentation) but it's not working. Here's the simple example from the tutorial documentation:

loadPano(panoName=panoramas/nature&panoSuffixes=1.png|2.png|3.png|4.png|5.png|6.png, 3000, stripes) (will load panoramas/nature1.png, panoramas/nature2.png and so on using strips transition effect 3 seconds long)

What I want: 4 pano's loaded in sequence with about a 2 second pause between each.

What I'm getting from the line below, first pano loads, nothing more. What am I missing?

loadPano(panoName=files/visualFiles/_MG_9449 Panorama&panoType=cube|files/visualFiles/_MG_9452 Panorama&panoType=cube|files/visualFiles/_MG_9455 Panorama&panoType=cube|files/visualFiles/_MG_9446 Panorama&panoType=cube,2000,fade);

Both of these examples are part of an OnClick from a hotspot.

Regards

Robert

360VT.co.uk
11-30-2009, 12:53 AM
this should get you started

http://flashpanoramas.com/forum/showthread.php?t=2362&highlight=onTransitionEnd

Harry

image360
11-30-2009, 02:07 AM
Thanks Harry,

I got something to work, but I'm still confused as to why the sample I noted does not work. Is the sample in the documentation wrong in some way?

Regards,

Robert

siesfor
11-30-2009, 02:57 AM
The sample in the tutorial is referring to the loading of 6 cubefaces for 1 pano, rather than 6 panos in succession. it's just showing a quicker/easier way of letting the program know to use an alternate suffix for the cubeface images, rather than having to type out the full url/filename for each face.

You'll have to load each pano with their own loadpano function, then use onTransitionEnd to call up the next pano and so on....

image360
11-30-2009, 03:31 AM
Ah, OK now it make sense as to why my sample based on it does not work.

Thanks

360VT.co.uk
11-30-2009, 12:56 PM
Robert

You will find loads of good uses for onTransitionEnd, onLoad and onStrat
also onClick, onPress, onRelease, onOver, onOut

They can all be used to start any event; pan, tilt, zoom, load a new pano, display an image, open a url and more

Have Fun

Harry