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

Boton horizontal en lugar de vertical

Estas en el tema de Boton horizontal en lugar de vertical en el foro de Flash y Actionscript en Foros del Web. hola estaba buscando una forma de hacer que el boton se despliegue en forma horizontal en lugar de que sea hacia abajo. Aqui les dejo ...
  #1 (permalink)  
Antiguo 25/06/2010, 09:53
 
Fecha de Ingreso: junio-2010
Mensajes: 36
Antigüedad: 13 años, 10 meses
Puntos: 0
Boton horizontal en lugar de vertical

hola estaba buscando una forma de hacer que el boton se despliegue en forma horizontal en lugar de que sea hacia abajo.
Aqui les dejo el script para que lo observen:
Código:
};
function menu_rollover(mc) {
	for(var i = 0; i<submenu.length; i++)
		{
			removeMovieClip(_this["submenu"+i])
		}
	mc.gotoAndStop(2);
	var menu_num = mc._name;
	menu_num = substring(menu_num, menu_num.lastIndexOf("_")+2, menu_num.length);
	submenu = menues[menu_num].childNodes
	for(var i=0; i<submenu.length; i++){
		_this.attachMovie("submenu_mc", "submenu_"+i, i+menues.length);
		_this["submenu_"+i].menutxt2.text = submenu[i].attributes.label;
		_this["submenu_"+i]._x = _this["menumc_"+menu_num]._x;
		if(i == 0)
		{
			_this["submenu_"+i]._y =_this["menumc_"+menu_num]._y+ _this["menumc_"+menu_num]._height+1
		}else{
			_this["submenu_"+i]._y =_this["submenu_"+(i-1)]._y+ _this["submenu_"+(i-1)]._height+1
		}
		_this["submenu_"+i].onRollOver = function()
		{
			this.gotoAndStop(2);
		}
		_this["submenu_"+i].onRollOut = function()
		{
			this.gotoAndStop(1);
		}
	}
	
}
function menu_rollout(mc) {
	
	mc.gotoAndStop(1);
}
Agradeceria mucho si me pudieran ayudar con este problema ya que me genera un gran atraso.
Desde ya muchas gracias.
  #2 (permalink)  
Antiguo 01/07/2010, 18:56
arawako
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: Boton horizontal en lugar de vertical

Se me ocurre que puedes intercambiar los siguientes identificadores con cuidado:

_x por _y
_y por _x
_width por _height
_height por _width

Última edición por cvander; 01/07/2010 a las 21:56

Etiquetas: horizontal, vertical, botones
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 15:25.