Problema gotoAndPlay

  • mr_ahmed
  • Born
  • Born
  • No Avatar
  • Registrado: Ago 13, 2007
  • Mensajes: 1
  • Status: Offline

Nota Agosto 23rd, 2007, 11:42 am

hola soy nuevo aquí y también om nuevo en ActionScript

im tratando de hacer un menú con el submenú y quiero que cuando el ratón sobre el menú o el submenú crear un efecto que funciona cuando el ratón está sobre el menú, pero cuando el ratón pasar el submenú suceder nada

Código: [ Select ]
stop();
// the menu effect
_root.mainMovie.navBack.onRollOver = over;
_root.mainMovie.navBack.onRollOut = out;

function over() {
    this.gotoAndPlay(2);
}

function out() {
    this.gotoAndStop(1);
}
// the sub menu audio effect
_root.mainMovie.navBack.audio.onRollOver = overaudio;
_root.mainMovie.navBack.audio.onRollOut = outaudio;

function overaudio() {
    this.gotoAndPlay(2);
}

function outaudio() {
    this.gotoAndPlay(7);
}

// the sub menu vedio effect
_root.mainMovie.navBack.ved.onRollOver = overved;
_root.mainMovie.navBack.ved.onRollOut = outved;

function overved() {
    this.gotoAndPlay(2);
}

function outved() {
    this.gotoAndPlay(7);
}
  1. stop();
  2. // the menu effect
  3. _root.mainMovie.navBack.onRollOver = over;
  4. _root.mainMovie.navBack.onRollOut = out;
  5. function over() {
  6.     this.gotoAndPlay(2);
  7. }
  8. function out() {
  9.     this.gotoAndStop(1);
  10. }
  11. // the sub menu audio effect
  12. _root.mainMovie.navBack.audio.onRollOver = overaudio;
  13. _root.mainMovie.navBack.audio.onRollOut = outaudio;
  14. function overaudio() {
  15.     this.gotoAndPlay(2);
  16. }
  17. function outaudio() {
  18.     this.gotoAndPlay(7);
  19. }
  20. // the sub menu vedio effect
  21. _root.mainMovie.navBack.ved.onRollOver = overved;
  22. _root.mainMovie.navBack.ved.onRollOut = outved;
  23. function overved() {
  24.     this.gotoAndPlay(2);
  25. }
  26. function outved() {
  27.     this.gotoAndPlay(7);
  28. }


Gracias por su ayuda
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Agosto 23rd, 2007, 11:42 am

  • Tony_Vallad
  • Newbie
  • Newbie
  • Avatar de Usuario
  • Registrado: Ago 20, 2007
  • Mensajes: 9
  • Status: Offline

Nota Agosto 30th, 2007, 2:06 am

¿Son los gotoandplay significaba para actuar en el escenario principal o en el menú?

-- Si la escena principal:
Intente lo mismo sin el "esto". antes de la Goto.

-- Si en el menú:
Pruebe un poco con el "objetivo decir" función.

Publicar Información

  • Total de mensajes en este tema: 2 mensajes
  • Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 33 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