# Help with enhanced scroller

**URL:** <https://forum.kirupa.com/t/help-with-enhanced-scroller/123661>\
**Category:** Uncategorized\
**Created:** [September 25, 2004, 9:23pm UTC](https://forum.kirupa.com/t/help-with-enhanced-scroller/123661 "2004-09-25T21:23:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shorty116](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@shorty116](https://forum.kirupa.com/u/shorty116)\
**Post date:** [September 25, 2004, 9:23pm UTC](https://forum.kirupa.com/t/help-with-enhanced-scroller/123661/1 "2004-09-25T21:23:39Z")

</div>

i got a scroller which will play a movieclip called “anima2” when you drag the scrollbar. why will this script work when implemented in the main time line, but not in a movieclip?

function procesaRastro(v){  
if(v){  
var count = 0;  
this.onEnterFrame = function(){  
count++;  
if(count%2 == 0){  
attachMovie(“anima2”,“anima”+count,count);  
attachMovie(“anima2”,“anima”+(count+1),count+1);  
var uno = this[“anima”+count];  
var dos = this[“anima”+(count+1)];  
uno.\_x = this.scrollbar.\_x;  
uno.\_y = this.scrollbar.\_y;  
dos.\_x = this.scrollbar.\_x;  
dos.\_y = this.scrollbar.\_y + (this.scrollbar.\_height-dos.\_height)+5;  
}  
}  
}else{  
delete this.onEnterFrame;  
}  
}
