Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Stopping (or stuttering) sounds in Flash

Posted on 2000-03-02
6
Medium Priority
?
200 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.
Suggested Courses

885 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