Ver Mensaje Individual
  #4 (permalink)  
Antiguo 29/05/2009, 03:24
Avatar de Wizart
Wizart
 
Fecha de Ingreso: noviembre-2008
Mensajes: 42
Antigüedad: 16 años
Puntos: 0
Problema solucionado

Bueno por si alguien le sirve... la verdad esque el efecto está bastante bien lo he encontrado en un ejemplo y lo he adaptado para que me funcione justo como lo necesito:

//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 = -750;
endY = 0;
};
_root.links.onRelease = function() {
endX = -1000;
endY = 0;
};
_root.contact.onRelease = function() {
endX = -1250;
endY = 0;
};
}