Foros del Web » Creando para Internet » Flash y Actionscript »

scroll horizontal

Estas en el tema de scroll horizontal en el foro de Flash y Actionscript en Foros del Web. Hola amig@s Tengo este codigo Código: function scroller():Void { scroller_mc._y = scrollable_area_mc._y; tn_group._y = tn_area._y; sr = tn_area._height/tn_group._height; scroller_mc._height = scrollable_area_mc._height * sr; sd = ...
  #1 (permalink)  
Antiguo 26/01/2011, 08:50
paois1
Invitado
 
Mensajes: n/a
Puntos:
scroll horizontal

Hola amig@s
Tengo este codigo

Código:
function scroller():Void
{
	scroller_mc._y = scrollable_area_mc._y;
	tn_group._y = tn_area._y;
	sr = tn_area._height/tn_group._height;
	scroller_mc._height = scrollable_area_mc._height * sr;
	sd = scrollable_area_mc._height - scroller_mc._height;
	cd = tn_group._height - tn_area._height;
	cr = cd / sd;
	tn_group.setMask(tn_area);
	
	if( tn_group._height <= tn_area._height )
	{
		scroller_mc._visible = scrollable_area_mc._visible = false;
	}
	else
	{
		scroller_mc._visible = scrollable_area_mc._visible = true;
	}
	scroller_mc.onPress = function()
	{
		this.startDrag(false, this._x, scrollable_area_mc._y, this._x, 
					   scrollable_area_mc._y + scrollable_area_mc._height - this._height + 1);
		onDrag = true;
		this.onEnterFrame = function()
		{
			new_y = tn_area._y + scrollable_area_mc._y*cr - this._y*cr;
			cv = (new_y - tn_group._y) * scrolling_speed;
			tn_group._y += cv;
			if( onDrag == false && cv_old == cv )
				delete this.onEnterFrame;
			cv_old = cv;
		}
	}
	scroller_mc.onRelease = scroller_mc.onReleaseOutside = function()
	{
		this.stopDrag();
		onDrag = false;
	}
}
es de un scroll que va vertical... como puedo modificarlo de modo que el scroll quede horizontal??
Gracias de antemano

Etiquetas: horizontal, scroll
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 17:35.