# Scrollspeed (number of nodes)

**URL:** <https://forum.kirupa.com/t/scrollspeed-number-of-nodes/189242>\
**Category:** Uncategorized\
**Created:** [May 15, 2006, 11:03am UTC](https://forum.kirupa.com/t/scrollspeed-number-of-nodes/189242 "2006-05-15T11:03:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonni](https://avatars.discourse-cdn.com/v4/letter/t/9fc348/32.png) [@tonni](https://forum.kirupa.com/u/tonni)\
**Post date:** [May 15, 2006, 11:03am UTC](https://forum.kirupa.com/t/scrollspeed-number-of-nodes/189242/1 "2006-05-15T11:03:04Z")

</div>

MovieClip.prototype.easeY = function(y) {  
this.onEnterFrame = function() {  
this.\_y = y-(y-this.\_y)/1.2;  
if (Math.abs(y-this.\_y)\<=1) {  
delete this.onEnterFrame;  
this.\_y = y;  
}  
};  
};

let’s say that I’ve variable numbers of nodes in different categories,  
is there a way control this?  
for instance if nodes are less than 4 I don’t want it to scroll at all, if 10 i want a certain scrollspeed, and 20 another and so on…

have a nice day. Tonni
