Solved

Stopping (or stuttering) sounds in Flash

Posted on 2000-03-02
6
190 Views
Last Modified: 2010-04-03
Why does the Stop All Sounds action almost always get bypassed in Flash? How can we get it to actually read them?

-Dan
0
Comment
Question by:SuperMario
  • 4
  • 2
6 Comments
 
LVL 2

Expert Comment

by:coopa
ID: 2579310
For some reason, stop all sounds will only work when the sounds in your timeline are contained within a movie clip.

_________________________________________
FROM EARLIER POST:

________
QUESTION
--------

Stopping (or stuttering) sounds in Flash

I know how to stop sounds in flash, which makes this problem interesting.

I have a background music loop, what i'd like to do is have it start stuttered... as if i was "scratching" it.

this is gonna sounds really stupid, but if the music sounded like this,

Der duum der duum

I want it to start like:

Der-D-D-D--Der duum der duum

Make sense ?   hope so.

So this is what i did...
Created a new frame with two layers
on one layer was the music, on the other were the "stop all sounds" actions.

Here is my timeline:

you will need to display this in a fixed width font to make any sense.  (copy and paste into notepad)

-------| 123456789012345678901234567890
Sound--| s]]]s]s]s]]s]]]]]]]]]]]]]]]]]]
Stop---| ]]]a]a]a]a]]]]]]]]]]]]]]]]]]]]

the numbers represent the frame numbers
s = the sound file in a keyframe
a = the "stop all sounds" action (in a keyframe
] = non-keyframe

Now for the problem.... What happens is the "stop all sounds" is completely ignored and the background music loop just plays 4 copies of itself simultaneously !!!   Grrrrrr

______
ANSWER
------

Okay...  Start here.

(you will need to paste this into notepad to view the timelines)

STAGE 1

1) In Flash, create a new file.
2) Insert a symbol of type "Movie Clip" called "soundloop" and rename "layer 1" to "Sound"
3) import your (loop) sound into the first frame
4) insert a new layer (call it "actions")
5) insert a keyframe at position 2 in "actions"
6) label this "Repeat"
7) insert a few blank frames into the "Sound" layer
8) add an action at the end of these blank frames - "goto and play Repeat"

your timeline should look like this
--------| 123456789
ACTIONS-| ]Kback]]
SOUND---| K]]]]]]A

the numbers represent the frame numbers
K = keyframe
A = action
back = label

STAGE 2

You can now drag this "Movie Clip" onto the main stage and "stop all sounds" will work...  here is my timeline for the stuttered (or scratched) effect.

---------| 12345678901234567890
Layer2---| ]]]]S]]]]S]]]S]]S]]]]]]]]
Layer1---| K]]]BK]]]BK]]BK]B]]K]]]]]]]

] = Blank Frame
S = Stop all sounds action in a keyframe
K = keyframe (with "soundloop" movie clip on stage)
B = blank keyframe (with "soundloop" movie clip NOT on stage)

Done...


P.S.  Cheers Dan.
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2579841
=)

If you want to leave this question open to other viewers for longer, withdraw your answer and make it a comment. I'll accept the comment in a couple of days. That's really helpful!

-Dan
0
 
LVL 2

Expert Comment

by:coopa
ID: 2580249
Okay...  Good idea.
0
6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

 
LVL 2

Expert Comment

by:coopa
ID: 2603846
Looks like no-one else is going to add to this... may as well close the question.
0
 
LVL 2

Accepted Solution

by:
coopa earned 0 total points
ID: 2616333
you can close this now Dan...
0
 
LVL 3

Author Comment

by:SuperMario
ID: 2634386
Great! Thanks!

-D

(BTW - been gone for a week, so that's why I haven't answered)
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now