Basically, on your “dot” object you want to run an action “On Mouse Up” that triggers your custom behaviour.
So click on your “dot” and then go to the inspector pane->Actions and then click the plus next to “On Mouse Up (touch end)” and choose “trigger custom behaviour” and choose your behaviour that you created from the list.
On testing when you have done this you will find that every time you let go of the “dot” it will jump to the “300x250 Resolve” scene.
Now, you want to transfer the “amount” as well. For this you will have to run a couple of javascript functions that will record the amount as you drag and then take the last amount when you let go of the “dot” and transfer it to the new scene.
WARNING: Advanced technique
Because you haven’t shared the document I don’t know how you’re updating the amount. The following is my view on updating the amount. At least this is how I would do it. This also eliminates the use of trigger custom behaviour as I am using the API to send to the next scene.
First create a function on the same action by clicking the plus next to “On Drag” on what I am assuming is the “dot” element. You should already have some actions there in reference to the drag but underneath a new action will appear. Choose “Run Javascript” and type the following code…
Better still. Here is a document: sliderAmount.zip (23.6 KB)
This will show you the technique.
P.S this is stepping on @h_classen’s toes as he would be able to do this in his sleep but the reason he has posted what he has posted is that we are trying to make this forum a learning environment not a “I have a problem … what’s the solution” A lot of what and why we know how to manipulate Hype to do our bidding is that we have spent time learning the documentation and what Hype can offer. Also a bit of programming knowledge too
granted not many users may be happy to learn the code or even know where to start but an effort has to be made. That being said is why I jumped in. I could see the effort that you did the custom behaviour and thought there could be a better approach as you wanted the “amount” to carry over and that would have involved Javascript anyway. There a a few ways to get to the solution I’m sure and this is just one of them.
Wow, that was longer than I thought. Anyways. Enjoy and see if you can put the pieces together for your own use. A tip is to share your document from the beginning so that we can see what you are trying to do.