Be a Supporter!

How do you stop the music in flash?

  • 436 Views
  • 15 Replies
New Topic Respond to this Topic
XychoJack
XychoJack
  • Member since: Sep. 13, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
How do you stop the music in flash? 2005-10-04 14:07:42 Reply

When I put some music into flash, it just won't stop until it ends.
I need to do something about stopping the sound when it goes to the next scene.
If you can help me on this one expect flash from me very soon.

joshy24
joshy24
  • Member since: Nov. 28, 2004
  • Offline.
Forum Stats
Member
Level 06
Musician
Response to How do you stop the music in flash? 2005-10-04 14:13:03 Reply

At 10/4/05 02:07 PM, xycho_jack wrote: When I put some music into flash, it just won't stop until it ends.
I need to do something about stopping the sound when it goes to the next scene.
If you can help me on this one expect flash from me very soon.

ok if u want it to end, just put in
stopallsounds();
in the frame
or in the button put
on (press) {stopallsounds();
}
hope it helped


Steam: imuffin101

BBS Signature
TomFrogman
TomFrogman
  • Member since: Jan. 16, 2005
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to How do you stop the music in flash? 2005-10-04 14:15:30 Reply

If the problem is purely to do with wanting the music to stop during a *scene change* then all you need to do is switch the audio from 'Event' to 'Stream'.

Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to How do you stop the music in flash? 2005-10-04 14:20:15 Reply

At 10/4/05 02:13 PM, joshy24 wrote: ok if u want it to end, just put in
stopallsounds();

isn't it stopAllSounds(); ?

Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to How do you stop the music in flash? 2005-10-04 14:30:49 Reply

Yeah, im pretty sure its isn't it stopAllSounds(); ive used it before..

Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to How do you stop the music in flash? 2005-10-04 14:32:07 Reply

Sorry about d-post

*Yeah, Im pretty sure its stopAllSounds(); ive used it before

authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to How do you stop the music in flash? 2005-10-04 14:33:52 Reply

At 10/4/05 02:07 PM, xycho_jack wrote: When I put some music into flash, it just won't stop until it ends.
I need to do something about stopping the sound when it goes to the next scene.
If you can help me on this one expect flash from me very soon.

wouldnt it be easier to just stream the audio in the timeline, and then, when you change the scene, it should stop, as long as you dont put the music onto the new timeline either.

that sounds right to ME, at least

BBS Signature
ParodyMyAss
ParodyMyAss
  • Member since: Oct. 4, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to How do you stop the music in flash? 2005-10-04 14:40:22 Reply

At 10/4/05 02:33 PM, authorblues wrote:
At 10/4/05 02:07 PM, xycho_jack wrote:
wouldnt it be easier to just stream the audio in the timeline, and then, when you change the scene, it should stop, as long as you dont put the music onto the new timeline either.
that sounds right to ME, at least

Yes, that's what I do for all my music. Just switch the music to 'Stream' in the Properties bar. Good luck!


I don't need glasses, but I wear them because I'd rather see the world through a distorted view than not be able to give it any excuse for how it is when I see it clearly.

BBS Signature
TomFrogman
TomFrogman
  • Member since: Jan. 16, 2005
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to How do you stop the music in flash? 2005-10-04 14:42:32 Reply

At 10/4/05 02:33 PM, authorblues wrote: wouldnt it be easier to just stream the audio in the timeline, and then, when you change the scene, it should stop, as long as you dont put the music onto the new timeline either.
that sounds right to ME, at least

Silence!
Our easier method of thinking is inferior to their actionscripting prowess.

caseyo
caseyo
  • Member since: May. 14, 2005
  • Offline.
Forum Stats
Member
Level 23
Blank Slate
Response to How do you stop the music in flash? 2005-10-04 15:55:01 Reply

At 10/4/05 02:42 PM, TomFrogman wrote:
Silence!
Our easier method of thinking is inferior to their actionscripting prowess.

Yes, but theirs looks cooler. O_o

XychoJack
XychoJack
  • Member since: Sep. 13, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to How do you stop the music in flash? 2005-10-04 16:06:28 Reply

Thanks you guys! You've helped me a lot!
My flash is turning out great!

authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to How do you stop the music in flash? 2005-10-05 00:18:28 Reply

At 10/4/05 02:42 PM, TomFrogman wrote: Silence!
Our easier method of thinking is inferior to their actionscripting prowess.

stopAllSounds(); is not "actionscript prowess".
that is the most basic of basics.


BBS Signature
ParodyMyAss
ParodyMyAss
  • Member since: Oct. 4, 2005
  • Offline.
Forum Stats
Member
Level 06
Blank Slate
Response to How do you stop the music in flash? 2005-10-06 06:16:46 Reply

At 10/4/05 04:06 PM, xycho_jack wrote: Thanks you guys! You've helped me a lot!
My flash is turning out great!

Good. I hope to see the debut of your flash so I can get a Save point in the Portal. Good luck w/ the rest!


I don't need glasses, but I wear them because I'd rather see the world through a distorted view than not be able to give it any excuse for how it is when I see it clearly.

BBS Signature
Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to How do you stop the music in flash? 2005-10-06 06:36:17 Reply

At 10/5/05 12:18 AM, authorblues wrote: stopAllSounds(); is not "actionscript prowess".
that is the most basic of basics.

that only strengthens it's uber power, sure I could run a for... in loop that locates instances of Sound and instances of steaming and event handling classes and stops them individually, but would that really be better than the uber 1 gold stopAllSounds()?

authorblues
authorblues
  • Member since: Jun. 21, 2005
  • Offline.
Forum Stats
Member
Level 12
Blank Slate
Response to How do you stop the music in flash? 2005-10-06 12:26:46 Reply

At 10/6/05 06:36 AM, Inglor wrote: that only strengthens it's uber power, sure I could run a for... in loop that locates instances of Sound and instances of steaming and event handling classes and stops them individually, but would that really be better than the uber 1 gold stopAllSounds()?

ooooooooh... PWN'd!!1!

oh wait...

BBS Signature
Xurch
Xurch
  • Member since: Mar. 26, 2005
  • Offline.
Forum Stats
Member
Level 25
Blank Slate
Response to How do you stop the music in flash? 2005-10-06 12:36:02 Reply

Jese guys, stop repeating the awsnser


BBS Signature