tengo unas dificultades con un scroll vertical
sucede que cuando arrastro la barra, la puedo llevar a cualquier parte, es decir, no sólo se mueve en el eje "y", sino tambien en el "x"
alguien sabe que debo corregir???
acá les dejo el as:
Código ActionScript :
onClipEvent(load){ var objetivo:String = _parent.mi_objetivo;"descripcion"//entre comillas aquí escribe var sostenido:Boolean = false; var razon:Number = this._parent._parent[objetivo]._height / this._height; var deslizar:Number; razon = int(razon); } on(press){ startDrag(this, false, this._parent.barra._x, this._parent.barra._y, this._parent.barra._x + this._parent.barra._width, this._parent.barra._y + this._parent.barra._height - this._height); this.sostenido = true; } on(release){ stopDrag(); this.sostenido = false; } onClipEvent(mouseMove){ if(this.sostenido){ deslizar = (this._y - this._parent.barra._y); deslizar = int(deslizar); this._parent._parent[objetivo]._y = -(razon * deslizar) / 2; } }