Salve a tutti,

ho un problema nel far funzionare uno scroller da un file swf esterno.

il file_scroller.swf contiene:

codice:
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;
	}
}
Nel file home.swf contiene solo questo:

mia_clip.loadMovie("file_scroller.swf");