Ver Mensaje Individual
  #7 (permalink)  
Antiguo 27/03/2009, 12:05
Gringuex
 
Fecha de Ingreso: marzo-2009
Mensajes: 11
Antigüedad: 15 años, 1 mes
Puntos: 0
Respuesta: raro comportamiento de swf externo en flash ...

Voy a tratar de clarificar el problema:
Bueno el .fla esta constituido de esta manera, posee un main donde en su fotograma por defecto aparecen los botones y el menu principal(Home), en layer 1 hay un MC llamado sliding content, que funsiona de cargador para easing en el cual tiene este script.

Código:
//during the time the movie loads, we set the current
//position of the content at 0,0; thus showing the 
//HOME section of the site.
onClipEvent (load) {
	_x = 0;
	_y = 0;
	div = 5; //This value just determines the speed
		     //the transistions.
}
//Here we constantly check for new values of
// _x and _y. These values are determined by endX and endY.
//We divide the difference by div to have an value that
//continues to change until the equation is true.
//Try changing the 'enterFrame' with 'Load' to see the 
//difference. You would then have to click on a button
//several times before the transistion completes.
onClipEvent (enterFrame) {
	_x += (endX-_x)/div;
	_y += (endY-_y)/div;

//We then use the onRelease method to determine the 
//new values of endX and endY. This is a new feature
//in Flash MX.
	_root.home.onRelease = function() {
		endX = 0;
		endY = 0;
	};
	_root.works.onRelease = function() {
		endX = -250;
		endY = 0;
	};
	_root.skills.onRelease = function() {
		endX = -500;
		endY = 0;
	};
	_root.bio.onRelease = function() {
		endX = 0;
		endY = -200;
	};
	_root.links.onRelease = function() {
		endX = -250;
		endY = -200;
	loadMovie("D:/La Quimera/Pagina para subir/Sitioactua2009/Nuevo proceso/guestbook/uno.swf", comentarios_mc);
	};
	_root.contact.onRelease = function() {
		endX = -500;
		endY = -200;
	};
}
Cuyo trabajo es que cuando presiono algun boton del menu, me dirige a una coordenada x e y di mi web, por ejemplo links, que en el cual agregue loadMovie para cargar el swf de comentarios en un MC que llame en instancia comentarios_mc el cual posicione en el mc easing que esta en layer 1.

E probado todo codigo que encontre, fui a la ayuda de flash y nada, lo carga pero no funciona.

Ahora si lo cargo en main, funsiona perfectamente, salvo que no me sirve, por dos motivos.
1: en main esta home, no comentarios
2: Lo coloca sobre todas las capas y queda fijo en el escenario, superponoendose en todas las secciones de mi web.

En verdad, soy novato, es posible que de claro no tenga nada este post, pero bue...
Si me pueden ayudar se los voy a agradecer infinitamente.
Saludos.