Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 20th, 2004, 03:18 PM
gobadgrs gobadgrs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 71 gobadgrs User rank is Private First Class (20 - 50 Reputation Level)gobadgrs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 48 m 21 sec
Reputation Power: 5
How do I stop a sound from playing?

Here is what I currently have scripted on a button.

on (press) {
arnold.stop();
}

on (release) {

arnold.gotoAndPlay(2);
}

Arnold is the name of an instance of a movie that plays Arnold Schwartzenegger saying "No problemo"

I'm making a do it yourself arnold rap movie.

What I want to happen is when you press the button rapidly, it would say.... "no no no no no no problemo."

The problem is that the movie keeps playing and all I ever get is no problemo. I cant get it to stop halfway through his phrase when I reclick the button.

Any ideas?

Thanks!

Reply With Quote
  #2  
Old January 20th, 2004, 05:07 PM
Fish_12345 Fish_12345 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Location: Here
Posts: 22 Fish_12345 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
you would put it so that on click, stop all sounds, before the go to, then it stops the last sound playing, then plays the new one.

Reply With Quote
  #3  
Old January 20th, 2004, 05:17 PM
gobadgrs gobadgrs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 71 gobadgrs User rank is Private First Class (20 - 50 Reputation Level)gobadgrs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 48 m 21 sec
Reputation Power: 5
but even when I insert the arnold.stop() in the same loop as teh release it doesnt work.

whats teh code for stop all sounds?

Reply With Quote
  #4  
Old January 20th, 2004, 05:48 PM
jmichels's Avatar
jmichels jmichels is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2003
Location: Orlando, FL
Posts: 177 jmichels User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 5 h 18 m 12 sec
Reputation Power: 6
Code:
stopAllSounds();

Reply With Quote
  #5  
Old January 22nd, 2004, 10:40 AM
rec rec is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Location: houston
Posts: 94 rec User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 40 m
Reputation Power: 6
Another way to do this is to make the sound file its own swf file (movie) then in your main movie just load and unload your “sound” movie for example into and out of a movie clip. This has the added advantage of keeping your main movie smaller and allowing it to load faster.

Reply With Quote
  #6  
Old February 5th, 2004, 01:01 PM
gobadgrs gobadgrs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 71 gobadgrs User rank is Private First Class (20 - 50 Reputation Level)gobadgrs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 48 m 21 sec
Reputation Power: 5
I still cant get it to work.... can someone write the loop to show me what Im doin wrong?

Reply With Quote
  #7  
Old February 6th, 2004, 08:20 AM
gobadgrs gobadgrs is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 71 gobadgrs User rank is Private First Class (20 - 50 Reputation Level)gobadgrs User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 48 m 21 sec
Reputation Power: 5
Quote:
Originally posted by Fish_12345
you would put it so that on click, stop all sounds, before the go to, then it stops the last sound playing, then plays the new one.


The problem with this is, when I stop all sounds, it kills the beats in the background as well.... otherwise it works perfectly.

How do I just stop one sound?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > How do I stop a sound from playing?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT