Porr3
03-16-2007, 02:38 PM
Hi.
I've been working with Action Script for a few days now and I am trying to make a slideshow with music. I have 3 different scenes and my first scene's background layer (first frame) have this code:
StoneMusic = new Sound(this);
StoneMusic.attachSound("IntroBGM");
StoneMusic.start(0, 99);
And when I start my movie, the sound plays. BUT when I click on a button to jump to another scene and frame, and then go back to the previous frame where the music started. Another instance of the song starts playing. I need help with solving this.
I tried some noobish attempts like
StoneMusic = new Sound(this);
StoneMusic.attachSound("IntroBGM");
BGMcounter;
if (BGMcounter = true){
StoneMusic.start(0, 99);
BGMcounter = false;
}
but it still did not work.
Summary: I need help so my music wont stack on eachother
Thanks
I've been working with Action Script for a few days now and I am trying to make a slideshow with music. I have 3 different scenes and my first scene's background layer (first frame) have this code:
StoneMusic = new Sound(this);
StoneMusic.attachSound("IntroBGM");
StoneMusic.start(0, 99);
And when I start my movie, the sound plays. BUT when I click on a button to jump to another scene and frame, and then go back to the previous frame where the music started. Another instance of the song starts playing. I need help with solving this.
I tried some noobish attempts like
StoneMusic = new Sound(this);
StoneMusic.attachSound("IntroBGM");
BGMcounter;
if (BGMcounter = true){
StoneMusic.start(0, 99);
BGMcounter = false;
}
but it still did not work.
Summary: I need help so my music wont stack on eachother
Thanks