Solved

Stopping (or stuttering) sounds in Flash

Posted on 2000-03-02
6
191 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

I know the transition can be hard. We got used to the ease of use ActionScript 2 had, but honestly, it became problematic later on, especially if designers were involved in the project and found it easy to add code as they saw fit. So, this artic…
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…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

929 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

13 Experts available now in Live!

Get 1:1 Help Now