# Scroller that loads into another movie

**URL:** <https://forum.kirupa.com/t/scroller-that-loads-into-another-movie/134242>\
**Category:** Uncategorized\
**Created:** [January 16, 2005, 12:51pm UTC](https://forum.kirupa.com/t/scroller-that-loads-into-another-movie/134242 "2005-01-16T12:51:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![avaloon](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@avaloon](https://forum.kirupa.com/u/avaloon)\
**Post date:** [January 16, 2005, 12:51pm UTC](https://forum.kirupa.com/t/scroller-that-loads-into-another-movie/134242/1 "2005-01-16T12:51:40Z")

</div>

Hi!  
I have a problem with some Actionscript…  
I have a horisontal scroller that works fine when its used without it loading into another movieclip.  
I have a master file that loads in that scroller swf file, i think it has some errors with the paths… but I´ve tried various ways to get it to work, but no sucess.  
I have three objects on stage, the content mc with AS:  
onClipEvent(enterFrame) {  
\_root.scrollMC.\_x=-1\*(\_root.slider.b);  
}

And then the sliderpath with as:  
onClipEvent (load) {  
setProperty (this, \_x, \_root.slider.\_x);  
setProperty (this, \_y, \_root.slider.\_y);  
}

Finally the scrollerbar with as:  
onClipEvent (load) {  
setProperty (this, \_y, int(\_y));  
}  
onClipEvent (enterFrame) {  
a = new Object();  
a.y =this.\_y;  
a.x =this.\_x;  
\_root.path.globalToLocal(a);  
b=int(a.x\*2);  
}

Do u know what I need to change for the scroller to work when its loaded into another swf?  
Cheers!  
//Avaloon
