Ver Mensaje Individual
  #8 (permalink)  
Antiguo 16/07/2009, 21:49
Avatar de NathanFox
NathanFox
 
Fecha de Ingreso: junio-2005
Mensajes: 35
Antigüedad: 19 años, 5 meses
Puntos: 0
Respuesta: Remplazar el GetUrl por GotoandStop en un menu XML

Y continua así:
Código:
/********************

	Counter

********************/

function countTime(mc:MovieClip):Void 
{
	var contor = 0;
	delete mc.onEnterFrame;
	mc.onEnterFrame = function() 
	{
		contor++;
		if (contor/nrFrames == delTime)
		{
			deleteMc(mc);
			delete this.onEnterFrame();
		}
	};
}

function deleteMc(mc:MovieClip):Void 
{
	if (mc._parent.hitTest(_xmouse, _ymouse, true) == false)
	{
		mc.mcShape.elastic({_y:25}, speedElastic);
		
		selectedMenu = -1;
		mc._parent.mcTxt.setColor(menuTextColor);
		                                                                                                                                                  
		l = menuArray[mc._parent.nr].submenuNamesArray.length;
		if (l != undefined)
		{
			for (i=0; i<l; i++)
			{
				mc._parent["mcOver"+i].removeMovieClip();
			}
		}
		checkMousePosition(mousePos);
	} 
	else 
	{
		countTime(mc);
	}
}


function replaceChar(c:String, n:String, str:String):String 
{
	var tempArray:Array = str.split(c);
	var str2:String = new String();
	for (var i = 0; i<tempArray.length-1; i++)
	{
		str2 += (tempArray[i]+n);
	}
	
	str2 += tempArray[i];
	return (str2);
}


function checkMousePosition(mc):Void 
{
	var contor = 0;
	delete mc.onEnterFrame;
	mc.onEnterFrame = function()
	{
		contor++;
		if (contor/nrFrames == 2)
		{
			delete this.onEnterFrame();
			
			var isOver = false;
			for (i=0; i<menuArray.length; i++) 
			{
				var mc:MovieClip = HOME.all["mcBut"+i];
				if (mc.hitTest(_xmouse, _ymouse, true) == true)
				{
					isOver = true;
				}
			}
			if (isOver == false) 
			{
				if (selectedMenuLight>=0 && selectedMenuLight != undefined && selectedMenu == -1)
				{
					mprev = msel=selectedMenuLight;
					HOME.all["mcBut"+selectedMenuLight].mcBut.but.onRollOver();
				}
			}
		}
	};
}
Haber si alguien consigue resolver el enigma...
¡Muchas gracias!