Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Stopping (or stuttering) sounds in Flash

Posted on 2000-03-02
6
Medium Priority
?
198 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: 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

Independent Software Vendors: 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!

Question has a verified solution.

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

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 how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

704 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