Matus
September 23, 2016, 11:46am
1
I already built a presentantion on my website .
But how can I built never-ending switching by arrows?
My goal is to create something similar to this
I tried to create multiple scenes with arrows (buttons) as persistents symbols, but result was not good for me.
Every advice I’ll appreciate.
strmiska
(strmiska)
September 23, 2016, 12:09pm
2
just simple - do it by using maintimeline and keyframe
slideshowSimple.hype.zip (721,2 KB)
Matus
September 23, 2016, 4:46pm
3
@strmiska Thanks. And how to make the presentation controlable? This is what I was asking for
strmiska
(strmiska)
September 24, 2016, 10:55am
4
create a persistant symbol for the navigation
slideshowSimple_v2.hype.zip (724,0 KB)
Matus
September 24, 2016, 12:07pm
5
Thanks. This is exactly how I tried before to do presentation.
Everything looks good, except one thing.
When I’m on the last scene, how can I switch to the first scene only with one click (never-ending-switching)?
I would say I need to add some javascript, but I searched the web and I found nothing
h_classen
(Hans-Gerd Claßen)
September 24, 2016, 1:19pm
6
give the button for nextscene the id ‘next’ and run
var scenenames = hypeDocument.sceneNames(),
firstScenename = scenenames[0],
lastScenename = scenenames[scenenames.length -1],
transition = hypeDocument.kSceneTransitionCrossfade,
duration = 1;
switch(element.id)
{
case "next" :
if(hypeDocument.currentSceneName() === lastScenename)
{
hypeDocument.showSceneNamed(firstScenename, transition, duration);
}else{
hypeDocument.showNextScene(transition, duration);
}; break;
default :
if(hypeDocument.currentSceneName() === firstScenename)
{
hypeDocument.showSceneNamed(lastScenename, transition, duration);
}else{
hypeDocument.showPreviousScene(transition, duration)
}; break;
}
for both …
1 Like
strmiska
(strmiska)
September 24, 2016, 1:45pm
7
@h_classen thanks! this is working great.
slideshowSimple_v3.hype.zip (712,0 KB)
other possibility would be you start a symbolTimeline at sceneEnd, make a button visible on entering scene,
which points to first scene without using any javascript.
1 Like
federico
(Federico G. Manisco)
October 20, 2016, 10:17pm
8
You could also activate the option for the button “can restart timeline”.
1 Like
Luckyde
(Lucky)
October 21, 2016, 5:58pm
9
i made a script for a kiosk with controls and autoplay based off scenes instead of timelines if it helps you
I made you a little sample,
this is probably a more complicated way to approach it but to do it on a mass amount of slides this is how i would approach it
kiosk.zip (45.8 KB)
I made a function in the header
var AllScenes,
KioskScenes,
pauseButton,
PauseButtonText,
paused = true,
kioskInterval,
kioskNumb;
if ("HYPE_eventListeners" in window === false) {
window.HYPE_eventListeners = Array();
}
window.HYPE_eventListeners.push({
"type": "HypeDocumentLoad",
"ca…
1 Like