ante todo felices fiestas!
soy conciente de que conozco muy poco de actionScript pero me he animado ha hacer un reproductor bastante precario pero lo quiero terminar. vamos al grano!
este es el script :
stop_btn.onRelease = function() {
stopAllSounds();
};
play_btn.onRelease = function() {
cancion1.start(0,1);
};
cancion1_btn.onRelease = function() {
cancion1.start(0,1);
};
cancion2_btn.onRelease = function() {
cancion2.start(0,1);
};
cancion3_btn.onRelease = function() {
cancion3.start(0,1);
};
cancion4_btn.onRelease = function() {
cancion4.start(0,1);
};
cancion5_btn.onRelease = function() {
cancion5.start(0,1);
};
cancion6_btn.onRelease = function() {
cancion6.start(0,1);
};
cancion7_btn.onRelease = function() {
cancion7.start(0,1);
};
cancion8_btn.onRelease = function() {
cancion8.start(0,1);
};
cancion9_btn.onRelease = function() {
cancion9.start(0,1);
};
cancion1 = new Sound();
cancion1.loadSound("canciones/Black devil disco club - with honey cream.mp3",true);
cancion1.start(0,1);
nombre_txt.text = "Black Devil Disco Club - With honey cream";
album_txt.text = "Eight on eight";
fecha_txt.text = "2007";
lugar_txt.text = "Paris";
soundFinished = true;
cancion1.onSoundComplete = function() {
soundFinished = true;
cancion2 = new Sound();
cancion2.loadSound("canciones/Dzihan & Kamien Orchestra - After.mp3",true);
cancion2.start(0,1);
nombre_txt.text = "Dzihan & Kamien Orchestra - After";
album_txt.text = "Live in Viena";
fecha_txt.text = "2003";
lugar_txt.text = "Alemania - Austria";
cancion2.onSoundComplete = function() {
soundFinished = true;
cancion3 = new Sound();
cancion3.loadSound("canciones/Ellen alien - Alles Sehen.mp3",true);
cancion3.start(0,1);
nombre_txt.text = "Ellen allien - Alles Sehen";
album_txt.text = "";
fecha_txt.text = "2003";
lugar_txt.text = "Alemania";
cancion3.onSoundComplete = function() {
soundFinished = true;
cancion4 = new Sound();
cancion4.loadSound("canciones/Guy Gerber - Late Bloomers.mp3",true);
cancion4.start(0,1);
nombre_txt.text = "Guy Gerber - Late Bloomers";
album_txt.text = "Belly Dancing";
fecha_txt.text = "2007";
lugar_txt.text = "Tel - Aviv";
cancion4.onSoundComplete = function() {
soundFinished = true;
cancion5 = new Sound();
cancion5.loadSound("canciones/Modeselektor - Ziq Zaq.mp3",true);
cancion5.start(0,1);
nombre_txt.text = "Modeselektor - Ziq Zaq";
album_txt.text = "Hello mom!";
fecha_txt.text = "2006";
lugar_txt.text = "Berlin";
cancion5.onSoundComplete = function() {
cancion6 = new Sound();
cancion6.loadSound("canciones/Shout out out out - Forever Indebted.mp3",true);
cancion6.start(0,1);
nombre_txt.text = "Shout out out out - Forever Indebted";
album_txt.text = "Not saying just saying";
fecha_txt.text = "2008";
lugar_txt.text = "Canadá";
cancion6.onSoundComplete = function() {
soundFinished = true;
cancion7 = new Sound();
cancion7.loadSound("canciones/Stereolab - Self Portrait with electric brain.mp3",true);
cancion7.start(0,1);
nombre_txt.text = "Stereolab - Self Portrait with electric brain";
album_txt.text = "Chemical Chords";
fecha_txt.text = "2008";
lugar_txt.text = "London";
cancion7.onSoundComplete = function() {
soundFinished = true;
cancion8 = new Sound();
cancion8.loadSound("canciones/Teddybears -magic kraut.mp3",true);
cancion8.start(0,1);
nombre_txt.text = "Teddybears -magic kraut";
album_txt.text = "Soft Machine";
fecha_txt.text = "2006";
lugar_txt.text = "Suecia";
cancion8.onSoundComplete = function() {
soundFinished = true;
cancion9 = new Sound();
cancion9.loadSound("canciones/The dandy warhols - primary.mp3",true);
cancion9.start(0,1);
nombre_txt.text = "The dandy warhols - primary";
album_txt.text = "Tributo a The Cure";
fecha_txt.text = "2006";
lugar_txt.text = "EEUU";
cancion9.onSoundComplete = function() {
cancion_1.start(0,1);
};
};
};
};
};
};
};
};
};
bastante rebuscado no??
pero bueno el tema es que hay varios botones con el nombre de cada canción(cancion1_btn, cancion2_btn etc....)
la idea es que al clicar en cada botón me envié a la canción correspondiente pero solo funciona el botón de la primera los otros 8 no responden!!
la ruta esta bien pero ya me he perdido, no entiendo porque no funcion, de seguro hay parte de mi carencia con este lenguaje pero hago lo que puedo!!
espero me puedan dar una mano!!
este es el enlace del reproductor
muchas gracias!!