# Scroll text box not working after loadmovie

**URL:** <https://forum.kirupa.com/t/scroll-text-box-not-working-after-loadmovie/180415>\
**Category:** Uncategorized\
**Created:** [February 28, 2006, 3:00pm UTC](https://forum.kirupa.com/t/scroll-text-box-not-working-after-loadmovie/180415 "2006-02-28T15:00:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![feeverte](https://avatars.discourse-cdn.com/v4/letter/f/278dde/32.png) [@feeverte](https://forum.kirupa.com/u/feeverte)\
**Post date:** [February 28, 2006, 3:00pm UTC](https://forum.kirupa.com/t/scroll-text-box-not-working-after-loadmovie/180415/1 "2006-02-28T15:00:19Z")

</div>

Hi  
this is my first post but I must say first of all thanx to Kirupa because of it I have managed to get over my Flash Phobia and building a site.

Now, I am using this scripts below to call a text into a scrollbox and it works perfect when I play the swf on its own, but keen i Load it from my template I cant manage to call the text file. Can anyone suggest where I should put the absolute path to call the text doc after loading new content? Many Thanx.

fscommand (“allowscale”, false);  
loadVariablesNum (“scroller.txt”, 0);

with the script on the MC named box

onClipEvent (load)  
{  
x\_iniz = \_x  
y\_iniz = \_y  
}

onClipEvent (mouseDown) {  
if (this.hitTest(\_root.\_xmouse, \_root.\_ymouse, true)) {  
gotoAndStop(2);  
drag = true;  
startDrag ("", false, x\_iniz+1 , y\_iniz, x\_iniz+1, (y\_iniz + \_root.barra.\_height) - \_height);  
}  
}  
onClipEvent (mouseUp) {  
gotoAndStop(1);  
stopDrag ();  
drag = false;  
}  
onClipEvent (enterFrame) {  
prop = Math.floor(1+((\_y-\_root.barra.\_y)\*\_root.txt.maxscroll)/(\_root.barra.\_height - \_height));  
if (drag) {  
\_root.txt.scroll = prop;  
}  
}
