Necesito ayuda BAD!

  • PetStarr
  • Born
  • Born
  • No Avatar
  • Registrado: Mar 28, 2004
  • Mensajes: 2
  • Status: Offline

Nota Marzo 28th, 2004, 3:03 am

Ok, tengo un pedazo de secuencia de comandos que un amigo me envió, y estoy tratando de adaptar con no mucha suerte. A continuación se muestra la secuencia de comandos.

Cuando hago clic en el movieclip "pushhome", diapositivas movieclip "home_mc" en la pantalla. Cuando hago clic en "pushclients", "home_mc" se desliza fuera de la pantalla. Esto funciona bien. Pero estoy tratando de agregar una función extra el cual haciendo clic en "pushclients" no sólo de diapositivas "home_mc" OFF, pero se desliza "clients_mc" ON. Como puede ver, he añadido esto a la secuencia de comandos -, pero no va a funcionar! Parece ignorar clients_mc completo. ¿Alguien tiene alguna idea por qué?? Cabe señalar que no soy un aficionado de ActionScript...sólo un principiante tratando de aprender sobre la marcha. :)

¡Salud!.


Código: [ Select ]
Math.easeOutQuad = function(t, b, c, d) {
return -c*(t /= d)*(t-2)+b;
};
MovieClip.prototype.motion = function(clip, pos, speed) {
clip.t = 0;
clip.d = speed;
clip.b = clip._x;
clip.c = pos-clip._x;
clip.onEnterFrame = function() {
if (this.t<=this.d) {
this._x = Math.easeOutQuad(this.t, this.b, this.c, this.d);
this.t++;
} else {
delete this.onEnterFrame;
}
};
};
pushhome.onRelease = function() {
this.motion(home_mc, 700, 25);
};
pushclients.onRelease = function() {
this.motion(home_mc, -300, 25);
this.motion(clients_mc, 700, 25);
};
  1. Math.easeOutQuad = function(t, b, c, d) {
  2. return -c*(t /= d)*(t-2)+b;
  3. };
  4. MovieClip.prototype.motion = function(clip, pos, speed) {
  5. clip.t = 0;
  6. clip.d = speed;
  7. clip.b = clip._x;
  8. clip.c = pos-clip._x;
  9. clip.onEnterFrame = function() {
  10. if (this.t<=this.d) {
  11. this._x = Math.easeOutQuad(this.t, this.b, this.c, this.d);
  12. this.t++;
  13. } else {
  14. delete this.onEnterFrame;
  15. }
  16. };
  17. };
  18. pushhome.onRelease = function() {
  19. this.motion(home_mc, 700, 25);
  20. };
  21. pushclients.onRelease = function() {
  22. this.motion(home_mc, -300, 25);
  23. this.motion(clients_mc, 700, 25);
  24. };
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Marzo 28th, 2004, 3:03 am

  • IMMORTAL
  • Beginner
  • Beginner
  • Avatar de Usuario
  • Registrado: Mar 13, 2004
  • Mensajes: 45
  • Status: Offline

Nota Marzo 28th, 2004, 4:27 am

¿Clients_mc en la misma línea de tiempo como home_mc?

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 56 invitados
  • No puede abrir nuevos temas en este Foro
  • No puede responder a temas en este Foro
  • No puede editar sus mensajes en este Foro
  • No puede borrar sus mensajes en este Foro
  • No puede enviar adjuntos en este Foro
 
 

© 2011 Unmelted, LLC. Ozzu® es una marca registrada de Unmelted, LLC