Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
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 ();
};
};Carregando comentários...