Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

havaianas

[Resolvido] rolagem vertical para horizontal

Recommended Posts

Bom dia Pessoal.

Sou leigo em action script, e gostaria de uma ajuda.

 

Tenho um seguinte codigo, de uma barra de rolagem vertical.

Alguem poderia me ajudar para deixá-la na horizontal???

 

codigo:

 

stop ();
texto_mc.campo.autoSize = false;
var area = new flash.geom.Rectangle(0, 0, texto_mc._width, rolagem._height);
var mcMax = texto_mc._height - rolagem._height;
texto_mc.cacheAsBitmap = true;
texto_mc.scrollRect = area;
rolagem.drag.onPress = function ()
{
	var dragMax = this._parent.fundo._height - this._height;
	this.startDrag(false, this._x, 0, this._x, dragMax);
	this.onMouseMove = function ()
	{
		var _loc2 = new flash.geom.Rectangle(0, mcMax * this._y / dragMax, texto_mc._width, rolagem._height);
		texto_mc.scrollRect = _loc2;
	};
	this.onRelease = this.onReleaseOutside = function ()
	{
		delete this.onMouseMove;
		stopDrag ();
	};
};

Compartilhar este post


Link para o post
Compartilhar em outros sites

Tenta isso.. adaptei rapidim aqui e nem testei...rsrrs

Abs.

 

stop ();
texto_mc.campo.autoSize = false;
var area = new flash.geom.Rectangle(0, 0, texto_mc._width, rolagem._height);
var mcMax = texto_mc._width - rolagem._width;
texto_mc.cacheAsBitmap = true;
texto_mc.scrollRect = area;
rolagem.drag.onPress = function ()
{
	var dragMax = this._parent.fundo._width - this._width;
	this.startDrag(false, this._y, 0, this._y, dragMax);
	this.onMouseMove = function ()
	{
		var _loc2 = new flash.geom.Rectangle(0, mcMax * this._x / dragMax, texto_mc._height, rolagem._width);
		texto_mc.scrollRect = _loc2;
	};
	this.onRelease = this.onReleaseOutside = function ()
	{
		delete this.onMouseMove;
		stopDrag ();
	};
};

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.