# "bouncing" scrollbar

**URL:** <https://forum.kirupa.com/t/bouncing-scrollbar/62194>\
**Category:** flash\
**Created:** [August 25, 2004, 6:56pm UTC](https://forum.kirupa.com/t/bouncing-scrollbar/62194 "2004-08-25T18:56:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jfo1276](https://avatars.discourse-cdn.com/v4/letter/j/f19dbf/32.png) [@jfo1276](https://forum.kirupa.com/u/jfo1276)\
**Post date:** [August 25, 2004, 6:56pm UTC](https://forum.kirupa.com/t/bouncing-scrollbar/62194/1 "2004-08-25T18:56:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 3:04am UTC](https://forum.kirupa.com/t/bouncing-scrollbar/62194/2 "2004-08-26T03:04:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 26, 2004, 7:44am UTC](https://forum.kirupa.com/t/bouncing-scrollbar/62194/3 "2004-08-26T07:44:27Z")

</div>

some thing like  
[http://www.kirupa.com/developer/actionscript/gravity.htm](http://www.kirupa.com/developer/actionscript/gravity.htm)  
But without the gravity and is contrained  
if you know what i mean
