MCs pase de diapositivas en mi matriz

  • theman
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Sep 15, 2004
  • Mensajes: 124
  • Status: Offline

Nota Septiembre 19th, 2007, 5:08 pm

Ya tengo una serie creada con una navegación y entre en el MCs cuando se presiona la navegación. Mi pregunta es, ¿cómo puedo solicitar un juego simple automatizado a la misma.

Las funciones ya están allí que hacen que la navegación criar a mi MC correspondiente, sólo necesito algunos de reproducción automática a la misma.

esta es mi fuente:

Código: [ Select ]
this.scrollIcons = function(p_offset:Number) {
  // Scrolls the icon list
  this.setIcon(this.currentIcon + p_offset);
};

this.setIcon = function(p_icon:Number) {
  // Set the currently selected icon
  if (p_icon != undefined) {
    if (p_icon < 0) p_icon = 0;
    if (p_icon > this.icons.length - 1) p_icon = this.icons.length - 1;
    if (p_icon != this.currentIcon) {
      this.currentIcon = p_icon;
      this.redraw(false);
    }
  }
};
  1. this.scrollIcons = function(p_offset:Number) {
  2.   // Scrolls the icon list
  3.   this.setIcon(this.currentIcon + p_offset);
  4. };
  5. this.setIcon = function(p_icon:Number) {
  6.   // Set the currently selected icon
  7.   if (p_icon != undefined) {
  8.     if (p_icon < 0) p_icon = 0;
  9.     if (p_icon > this.icons.length - 1) p_icon = this.icons.length - 1;
  10.     if (p_icon != this.currentIcon) {
  11.       this.currentIcon = p_icon;
  12.       this.redraw(false);
  13.     }
  14.   }
  15. };
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Septiembre 19th, 2007, 5:08 pm

  • theman
  • Graduate
  • Graduate
  • Avatar de Usuario
  • Registrado: Sep 15, 2004
  • Mensajes: 124
  • Status: Offline

Nota Septiembre 20th, 2007, 9:42 am

que nadie use este lugar? LOL
  • graphixboy
  • Control + Z
  • Mastermind
  • Avatar de Usuario
  • Registrado: Jul 11, 2005
  • Mensajes: 1828
  • Loc: In the Great White North
  • Status: Offline

Nota Septiembre 21st, 2007, 10:06 pm

setInterval es flashs versión de un temporizador. Yo normalmente uso uno con una prueba para el movimiento del ratón a fin de que se cancela si hay una interacción con el usuario.

http://www.actionscript.org/resources/articles/120/1/Intervals-in-Flash-with-setInterval/Page1.html
  • classified
  • Expert
  • Expert
  • Avatar de Usuario
  • Registrado: Dic 23, 2005
  • Mensajes: 540
  • Loc: Bahrain
  • Status: Offline

Nota Septiembre 24th, 2007, 8:30 am

theman escribió:
que nadie use este lugar? LOL

:shock:
m0o , where <<Less is More>>
http://www.zainals.com
http://www.zainals.com/blog
  • krismeister
  • Graduate
  • Graduate
  • No Avatar
  • Registrado: Oct 21, 2006
  • Mensajes: 202
  • Status: Offline

Nota Septiembre 24th, 2007, 3:03 pm

la matriz sólo te veo usando es:
this.icons

así que tal vez lo que busca es
Código: [ Select ]
this.setIcon = function(p_icon:Number) {
  // Set the currently selected icon
  if (p_icon != undefined) {
    if (p_icon < 0) p_icon = 0;
    if (p_icon > this.icons.length - 1) p_icon = this.icons.length - 1;
    if (p_icon != this.currentIcon) {
      this.currentIcon = p_icon;
      this.redraw(false);
    }
  this.icons[p_icons].play();
  }
};
  1. this.setIcon = function(p_icon:Number) {
  2.   // Set the currently selected icon
  3.   if (p_icon != undefined) {
  4.     if (p_icon < 0) p_icon = 0;
  5.     if (p_icon > this.icons.length - 1) p_icon = this.icons.length - 1;
  6.     if (p_icon != this.currentIcon) {
  7.       this.currentIcon = p_icon;
  8.       this.redraw(false);
  9.     }
  10.   this.icons[p_icons].play();
  11.   }
  12. };

Publicar Información

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