Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/05/2008, 08:50
red_robe
 
Fecha de Ingreso: febrero-2006
Mensajes: 233
Antigüedad: 18 años, 2 meses
Puntos: 3
problema con ScrollBar

hola, el scroll me funcionaba perfectamente poniendo esta línea en las acciones (actionscript, F9): myScrollbar.setScrollTarget(texto);

he puesto todo el código en una clase .as y tambien he creado el scroll dinámicamente y no consigo vincular el scroll con el texto. os pongo el código:

_root.attachMovie("textoPantalla", "texto", _root.getNextHighestDepth());
_root.texto._x = 50;
_root.texto._y = 150;

_root.attachMovie("scroll", "myScrollbar", _root.getNextHighestDepth());
_root.myScrollbar._x = 70;
_root.myScrollbar._y = 130;
(APARECE BIEN POR PANTALLA TANTO EL TEXTO COMO EL SCROLL)

_root.myScrollbar.setScrollTarget(_root.texto.text ); //NO FUNCIONA

¿Que hay que poner para vincularlo bien? GRACIAS