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

AS3 cambiar getURL x gotoandStop

Estas en el tema de AS3 cambiar getURL x gotoandStop en el foro de Flash y Actionscript en Foros del Web. Muy buen dia para todos! Les comento tengo este codigo en un .as...y necesito readaptarlo para que en ves de ir a un link (que ...
  #1 (permalink)  
Antiguo 28/04/2011, 07:33
 
Fecha de Ingreso: abril-2003
Mensajes: 260
Antigüedad: 21 años
Puntos: 1
AS3 cambiar getURL x gotoandStop

Muy buen dia para todos!

Les comento tengo este codigo en un .as...y necesito readaptarlo para que en ves de ir a un link (que toma de un xml) vaya a un frame determinado.

Código:
public function releaseHandler(event : MouseEvent) : void
		{
			var item : MovieClip = MovieClip(event.currentTarget); //trace(item.name);
			var mcParent : MovieClip = MovieClip(item.parent);
			
			// test if the releasse event comes from the same item that was pressed
			if(item == this.currPressedItem)
			{
				switch(item.name)
				{
					case "mcHolder":
						if(galleryArray[mcParent.index].link != "") 
						{
							// if you want to call a js function, uncomment this, and comment the URLNavigator call
							//								if (ExternalInterface.available) 
							//								{
							//					                ExternalInterface.call("clickedSlide", mcParent.index);
							//					            }

							URLNavigator.ChangePage(galleryArray[mcParent.index].link, galleryArray[mcParent.index].target);
							activateMouseMovement(false);
						}
						break;
				}
Gracias desde ya gente.
Saludos para todos!
__________________
Bye!
  #2 (permalink)  
Antiguo 28/04/2011, 17:05
Avatar de Hugo_Euan  
Fecha de Ingreso: abril-2011
Ubicación: Mérida, Yucatán, México
Mensajes: 193
Antigüedad: 13 años
Puntos: 71
Respuesta: AS3 cambiar getURL x gotoandStop

Código ActionScript:
Ver original
  1. public function releaseHandler(event : MouseEvent) : void
  2. {
  3. var item : MovieClip = MovieClip(event.currentTarget); //trace(item.name);
  4. var mcParent : MovieClip = MovieClip(item.parent);
  5. // test if the releasse event comes from the same item that was pressed
  6. if(item == this.currPressedItem){
  7. switch(item.name)
  8. {
  9. case "mcHolder":
  10. gotoAndPlay(fotograma al que quieres ir);
  11. break;
  12.                 }


ESPERO TE SIRVAAA !!! EXITO !!!

Etiquetas: as3, geturl, gotoandstop
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 02:45.