New Hype user here. Coming from Flash and Actionscript. I’m trying to create a time line scrubber for a pupil dilation animation.
I’d like to to create something similar to http://tumult.com/hype/gallery/LakeMead/LakeMead.html. Are there any online tutorials for creating this? I don’t know Javascript. I’d also be willing to pay a freelancer. I’ve created the animation on the timeline, all I need now is to create the scrubber. Thanks for any help!
What you need to do is pay me a million dollars!! … I’m kidding
Create a timeline for your Slider (make it the same length as your timeline you want to control),
Animate the ellipse on the slider left to right.
Then with the ellipse on your slider selected make this draggable by choosing Actions->On Drag->Control Timeline and restrict it to horizontal and uncheck continue after drag.
Then in the same Actions inspector choose another On Drag action but this time choose Javascript->New Javascript…
In this function you want to write something like the following (note this is pseudo code, replace the values with your own)
var time = hypeDocument.currentTimeInTimelineNamed('slider-timeline')
hypeDocument.goToTimeInTimelineNamed(time, 'timeline to control');
If you want to PM me you can. I’ll send you a message.
I tried your instructions and it works indeed @DBear . Great. I was wondering how to accomplish this too.
One question. How can you let the slider be synchronised with the cursor. It now is going a bit faster than my cursor slides.
Is there a way to make the a slider responsive? When I resize my browser window the scale for the slider gets all screwed up and does not follow my mouse.
Hey guys. I have followed the instructions here and come up with a semi working prototype. However when dragging the timeline scrubber it is not fluid and I believe provides a pretty bad UX. The mouse quickly goes beyond the button and you have to keep redragging it to get to the end of the timeline. I have adjusted the speed and tried everything I could think of. Any help would be appreciated. <a class=“attachment”
the flex slider method you presented in the other thread doesnt work for this instance. I followed the steps and tried it but it doesnt seem to work. I think because I have multiple lay outs and need this to be responsive. I dont know.
Well, in the end it's a bug, they will solve it in the next release I hope...in the meanwhile at least we've a workaround: I just posted the version 2.0 I spent many hours to build it and it takes a while to understand the logic and how to integrate it into a project! Hope you can find it useful!