# Help with enhanced scroller

**URL:** https://forum.kirupa.com/t/help-with-enhanced-scroller/65394
**Category:** Uncategorized
**Created:** [September 25, 2004, 9:23pm UTC](https://forum.kirupa.com/t/help-with-enhanced-scroller/65394 "2004-09-25T21:23:39Z")
**Posts on this page:** 3
**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/65394/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;  
}  
}

---

<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: [September 25, 2004, 10:01pm UTC](https://forum.kirupa.com/t/help-with-enhanced-scroller/65394/2 "2004-09-25T22:01:21Z")

</div>

try adding \_root before movie clip name?

---

<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: [September 26, 2004, 10:27am UTC](https://forum.kirupa.com/t/help-with-enhanced-scroller/65394/3 "2004-09-26T10:27:01Z")

</div>

> [@beneath:the:sky](#):
>
> try adding \_root before movie clip name?

i tried adding it but it helped nothing. i attached the fla so you can have a look.
