Hello la communauté
je maîtrise pas bien AS et j'aimerai faire un script
qui me permet de passer à une animation (PLAN2) à la fin
de la lecture du son contenu dans l'animation (PLAN1)
Mon animation PLAN1 est ainsi composé
- animation sur une seule frame
- avec des boutons PAUSE (qui permet d'arrêter l'animation (son compris))
et Recul ( qui permet d'arrêter l'animation(qui permet de reculer l'animation (son compris))
J'ai placé une action sur la première image
stop();
play_btn._visible=false;
var bg_sound:Sound = new Sound();
bg_sound.attachSound("music_gui_missionpass2.mp3");
bg_sound.start();
this.play_btn.onRelease = function() {
/* get the current offset. if you stop all sounds and click the play button, the MP3 continues from
where it was stopped, instead of restarting from the beginning. */
var numSecondsOffset:Number = (bg_sound.position/1000);
bg_sound.start(numSecondsOffset);
};
this.pause_btn.onRelease = function() {
stopAllSounds();
};
Je voudrai attacher mon fichier pour plus de compréhension
mais je sais pas comment faire
PLEASE HELP ME
Merci