USERNAME:
PASSWORD:
Save Info!
Logging in…
This topic is 1 page long.
[ Profile | Posts | Contact ]
Posted at: 6/25/08 11:35 PM
Sign-Up: 05/26/07
Posts: 1,778
Okay. This is my first game I am actually putting all my effort into. Please do not make fun of it. When you click the back button is goes to the main menu, which replays the song. This is kinda weird. Should I post the .fla so you all can check it out, and understand it more?
http://spamtheweb.com/ul/upload/250608/7 9519_Catch_That_Monkey_TylerC.php
Posted at: 6/25/08 11:37 PM
http://spamtheweb.com/ul/upload/250608/8 0524_Catch_That_Monkey_TylerC.php
This is an updating version.
Sign-Up: 10/29/06
Posts: 443
make a frame before the menu, and on that fram put a action
stopAllSounds();
Make the back button take you to this frame first
Boom
Posted at: 6/25/08 11:39 PM
Sign-Up: 02/05/08
Posts: 414
its cause on the menu frame is where u tell it to play the sound, so when u go back to the menu, it tells it to play the sound again. its no glitch. make two menu frames, one with the action, one without, and all the other screens (tut, instructions, play) make it go back to the second one. and then the intro go to the 1st.
Click on my sig! The Boom! Headshot Collab! Join now!
Posted at: 6/25/08 11:40 PM
Sign-Up: 11/11/07
Posts: 561
Stop the music before starting it again. Or check to see if it's been defined yet.
if(_root.bgmusic == undefined) { _root.bgmusic = new Sound(_root); _root.bgmusic.attachSound("bgmusic"); _root.bgmusic.start(0,0); _root.bgmusic.onSoundComplete = function() { this.start(0,0); } }
Mibbygames.com panterA
Posted at: 6/25/08 11:41 PM
At 6/25/08 11:37 PM, DarkHabit wrote: make a frame before the menu, and on that fram put a action stopAllSounds(); Make the back button take you to this frame first
wow yeah that works to lol, completely forgot, i havnt scripted in awhile, been stuck on animation.
Posted at: 6/25/08 11:44 PM
I do not really get what your saying. I tried that it inserts it, but it doesn't change. Do I copy All the frames, and put them in a different .fla then after the first frame with stopAllSounds(); ?
Posted at: 6/25/08 11:49 PM
bump
Posted at: 6/25/08 11:51 PM
Wow... Did you script the sound to play?
Sign-Up: 08/08/06
Posts: 4,554
Just make a new layer for the sound and extend it to the length of all your main menu frames.
School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||
Posted at: 6/26/08 12:24 AM
Never mind guys I fixed it :3
Thanks anyways your all great!
One thing. If I go to a certain frame, and I want the menu song to stop, and it goes to a different song what do i do?
Posted at: 6/26/08 02:16 AM
All times are Eastern Standard Time (GMT -5) | Current Time: 06:45 PM
<< Back