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;
}
}