Botón Reproducir problemas!

  • Jeremy Neumann
  • Born
  • Born
  • No Avatar
  • Registrado: Sep 10, 2004
  • Mensajes: 3
  • Loc: USA, MO
  • Status: Offline

Nota Septiembre 10th, 2004, 4:20 pm

Hola, tengo un archivo flash que cuando se hace clic en el botón de reproducción, es reproducir un sonido de la biblioteca. Pero si la prensa es más que una vez que comienza la canción de nuevo. ¿Qué hace que la canción para jugar contra sí mismo.

¿Qué debo hacer para solucionar este problema?

Aquí está se puede ver el flash problema, y el. Fla archivo.

http://www.handsomerob. com / test / index.html

Jeremy Neumann
  • Anonymous
  • Bot
  • No Avatar
  • Registrado: 25 Feb 2008
  • Mensajes: ?
  • Loc: Ozzuland
  • Status: Online

Nota Septiembre 10th, 2004, 4:20 pm

  • fotbon
  • Novice
  • Novice
  • No Avatar
  • Registrado: Mar 16, 2004
  • Mensajes: 20
  • Status: Offline

Nota Septiembre 10th, 2004, 5:56 pm

poner un calificativo, si al principio del botón y tienen un interruptor variable después de hacer clic y apagar una vez que la canción se hace jugando.

por ejemplo,
Código: [ Select ]
on( release ){
if( playing != true ){
  //play song
  playing = true;
}
}
  1. on( release ){
  2. if( playing != true ){
  3.   //play song
  4.   playing = true;
  5. }
  6. }

código para el último fotograma:
Código: [ Select ]
playing = false;
  • Jeremy Neumann
  • Born
  • Born
  • No Avatar
  • Registrado: Sep 10, 2004
  • Mensajes: 3
  • Loc: USA, MO
  • Status: Offline

Nota Septiembre 10th, 2004, 7:06 pm

Poco confundido. Eran exactamente debo poner el código?

He añadido un comportamiento al botón para reproducir una canción de la biblioteca, este es el código que me dio...


Código: [ Select ]
on (release) {
    //Play Internal Sound Behavior
    if(_global.Behaviors == null)_global.Behaviors = {};
    if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
    if(typeof this.createEmptyMovieClip == 'undefined'){
        this._parent.createEmptyMovieClip('BS_testraindownsong',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
        _global.Behaviors.Sound.testraindownsong = new Sound(this._parent.BS_testraindownsong);
    } else {
        this.createEmptyMovieClip('_testraindownsong_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
        _global.Behaviors.Sound.testraindownsong = new Sound(this.BS_testraindownsong);
    }
    _global.Behaviors.Sound.testraindownsong.attachSound("raindown");
    if (true) {
        _global.Behaviors.Sound.testraindownsong.start(0,1);
    }
    //End Behavior

}
  1. on (release) {
  2.     //Play Internal Sound Behavior
  3.     if(_global.Behaviors == null)_global.Behaviors = {};
  4.     if(_global.Behaviors.Sound == null)_global.Behaviors.Sound = {};
  5.     if(typeof this.createEmptyMovieClip == 'undefined'){
  6.         this._parent.createEmptyMovieClip('BS_testraindownsong',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
  7.         _global.Behaviors.Sound.testraindownsong = new Sound(this._parent.BS_testraindownsong);
  8.     } else {
  9.         this.createEmptyMovieClip('_testraindownsong_',new Date().getTime()-(Math.floor((new Date().getTime()) /10000)*10000) );
  10.         _global.Behaviors.Sound.testraindownsong = new Sound(this.BS_testraindownsong);
  11.     }
  12.     _global.Behaviors.Sound.testraindownsong.attachSound("raindown");
  13.     if (true) {
  14.         _global.Behaviors.Sound.testraindownsong.start(0,1);
  15.     }
  16.     //End Behavior
  17. }
  • Jeremy Neumann
  • Born
  • Born
  • No Avatar
  • Registrado: Sep 10, 2004
  • Mensajes: 3
  • Loc: USA, MO
  • Status: Offline

Nota Septiembre 13th, 2004, 5:28 am

Ahh No importa, me imaginé a cabo.

Gracias!

Jeremy

Publicar Información

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