Problem with song in menu

Started by: EarthquakeAnims | Replies: 5 | Views: 956

EarthquakeAnims

Posts: 894
Joined: Jun 2014
Rep: 10

View Profile
Jan 16, 2015 1:45 AM #1295922
I set it as a event and stuff and then put a frame where I want my animation to start But the the music won't stop.


here's some screenies

Image

Image



basically how do you add music to your menu and keep it going untill you press play? and I also want it to keep on playing when i go into scene select
Drone
2

Posts: 11,650
Joined: Mar 2012
Rep: 10

View Profile
Jan 16, 2015 7:00 AM #1296052
Make the frame where your animation starts have the stop all sounds code
Arch-Angel
2

Posts: 9,496
Joined: Jan 2007
Rep: 10

View Profile
Jan 16, 2015 8:48 AM #1296096
Technically you don't even need the actionscript. What you can do is have a frame for the menu that calls for the play even in properties, and then a frame after the menu frame where it calls for an event to stop the music. That should fix your problem.
EarthquakeAnims

Posts: 894
Joined: Jun 2014
Rep: 10

View Profile
Jan 18, 2015 7:56 PM #1297202
Quote from Drone
Make the frame where your animation starts have the stop all sounds code


whats the code for that?
Arch-Angel
2

Posts: 9,496
Joined: Jan 2007
Rep: 10

View Profile
Jan 18, 2015 8:17 PM #1297211
Quote from EarthquakeAnims
whats the code for that?


stopAllSounds();

Couldve gone into Actions>Timeline Control> Stop All Sounds
EarthquakeAnims

Posts: 894
Joined: Jun 2014
Rep: 10

View Profile
Jan 19, 2015 5:45 PM #1297486
Quote from Arch-Angel
stopAllSounds();

Couldve gone into Actions>Timeline Control> Stop All Sounds



AWESOME THANKS! it worked!