Log in

View Full Version : physics slider



Hu4ley
06-20-2008, 12:21 PM
Hi guys,

I am working on a personal project that incorporates an image slider. I have the slider working but I would like to add some physics to it so that when I slide and release it it keeps going to the end of the path and bounces back, depending on velocity etc.

I have tried to imatate this by setting the slider button's alpha property to 0 and adding a follower movieclip to its not really ideal.

Has anybody worked on creating this effect before and if so could you point me in the right direction on how to achieve it?

I have attached the slider fla to this post.

thanks in advance

Hurley

Medyman
06-20-2008, 03:14 PM
look into using a Tweening engine like Tweener. The startDrag() and stopDrag() methods have a lot of limitations. It sounds like you need an "elastic" transition type.

Hu4ley
06-20-2008, 04:27 PM
thanks Medyman.

Ill look into that over the weekend.

Cheers

Hurley