Ver Mensaje Individual
  #2 (permalink)  
Antiguo 04/01/2005, 11:43
Avatar de Bandit
Bandit
Moderador
 
Fecha de Ingreso: julio-2003
Ubicación: Lima - Perú
Mensajes: 16.726
Antigüedad: 20 años, 9 meses
Puntos: 406
Hola gbl:
Prueba con este código, tienes es poner un nombre de instancia al campo de texto dinámico para el ejemplo: miTextField y además su Variable.
Código en el frame 1:
desplazamiento = mitextField._height-barra._height;
izquierda = barra._x;
superior = barra._y;
derecha = barra._x;
inferior = desplazamiento;
//
barra.onEnterFrame = function() {
//-- scroll
scrollvalue = barra._y/desplazamiento;
max = texto.maxscroll;
texto.scroll = Math.round((scrollvalue*(max-1))+1);
//-- drag
barra.onPress = function() {
startDrag(this, false, izquierda, superior, derecha, inferior);
};
barra.onRelease = function() {
stopDrag();
};
zona.onPress = function() {
if (_root._ymouse<desplazamiento) {
barra._y = _root._ymouse-10;
} else {
barra._y = (_root._ymouse-10)-barra._height;
}
};
};

Espero haberte sido de ayuda,
__________________
Bandit.
Si no sabes estudia y si sabes enseña.
http://www.banditwebdesign.com/

Última edición por Bandit; 05/05/2008 a las 16:21