PDA

View Full Version : "bouncing" scrollbar



jfo1276
August 25th, 2004, 02:56 PM
Hi, I'm trying to create a slider/scroll bar similar to the one at this site: kurtnoble.com. (http://kurtnoble.com) If you'll notice, the scroll bar can "bounce" of its perimeters. I'm not very experienced with actionscript at all. so any guidance, help, etc. would be greatly apprectiated.

scarce
August 25th, 2004, 11:04 PM
well, I'm not sure right off hand how to do it, but I can tell you it deals with if/then statements dealing with it's position........such as, if (_root.bar._x < 88 && _root.bar._x > 77)

something to that effect would find out if it's between so and so or so and so, if it's closer to lets say 88, then you'd maybe do a command that makes it move TO 88.

ViNc3
August 26th, 2004, 03:44 AM
some thing like
http://www.kirupa.com/developer/actionscript/gravity.htm
But without the gravity and is contrained
if you know what i mean