Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/03/2010, 05:49
sebatab
 
Fecha de Ingreso: abril-2008
Mensajes: 27
Antigüedad: 16 años
Puntos: 1
no se que agregar a mi actionscript para que funcione una cosita...

He utilizado el siguiente codigo para play y stop de una musica en un trabajo que realice en flash...


my_sound = new Sound(); // creamos un objeto del tipo sonido
my_sound.attachSound("sonido"); // le adjuntamos el sonido que tenemos en la biblioteca

play_btn.onPress = function() {
my_sound.start(); //iniciamos el sonido
}

stop_btn.onPress = function() {
my_sound.stop("sonido"); //detenemos el sonido
}


AHORA: COMO HAGO O MEJOR DICHO QUE AGREGO PARA QUE LA MUSICA EMPIEZE AUTOMATICAMENTE SIN QUE HAGA FALTA APRETAR PLAY??