all groups > flash (macromedia) > december 2006 >
You're in the

flash (macromedia)

group:

navigation buttons restart my sound



navigation buttons restart my sound rtreitner
12/18/2006 10:08:23 PM
flash (macromedia): Navigation buttons restart my sound

How can I prevent this?

I tried asking in the action script forum but nobody there knows what their
doing. So i am asking here hoping somebody knows how set up "on" and "off"
buttons for sound in flash 8 that actually work correctly. I tried several
tutorials and every one is screwed up and does not work right. By themselves
the tutorials are fine. One you put them in a web site you find all the bugs.
Every one I have tried does not keep the sound off when you select it. Every
time I use a navigation button it also re-starts my sound, and depending in the
method I?ve tried it sometimes re-starts the music over the one that?s already
playing. I want an "on" and "off" button that actually works independently of
the rest of the movie, not one that the main navigation also controls the sound.

I want my background music to play when the user arrives, but if they select
off, it should stay off, not restart when I go to the next scene, or page on my
flash site. Does anybody know how to set up sound buttons that actually work
right?



Ok, let?s try this again first I have my two on/off sound buttons in a movie
clip.

You open it up and you see 10 frames the first five for on, and the last five
for off.

Each part contains both buttons, the first the on is highlighted and the off
is coded, the second the off is highlighted and the on is coded.

In the first part my code for the ?off ?button is:

on (release) {

//stopAllSounds Behavior
stopAllSounds();


//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("6");
//End Behavior
}

In the second part my code for the ?on? button is:

on (release) {

// Play Sound Behavior
_global.Behaviors.Sound.coolsound.start(0,1);
// End Play Sound Behavior


//Movieclip GotoAndPlay Behavior
this.gotoAndPlay("1");
//End Behavior
}

I also have an action layer above each with the stop code for each part.

The music loads and plays fine when I run my movie. It stops and starts with
the buttons and they work fine. My problem is whenever I hit a navigation
button on my main timeline it re-starts my music again, instead of it staying
off. Does anybody know why my music restarts and how to stop it from doing so,
unless the user decides to re-start it?


My file is at: www.designbytreitner.com/main2.fla

You can also view it at: www.designbytreitner.com/main2.html




Re: navigation buttons restart my sound urami_
12/19/2006 12:00:00 AM

[quoted text, click to view]

So why do people do these tutorials than ?
Perhaps it's beyond your flash comprehension and it is you who can't make them
work correctly ? Which is the one you tried so far (url), upload the file you
have been working on and let us check it out. Than we can figure out where it
the place you missing something and help you fix it.


[quoted text, click to view]

Sound to me like design concept problem on your end. You must be reentering frame
where the sound is while using the navigation. Make sure the navigation do not travel
to frames where the sound is initiated.

[quoted text, click to view]

Stop all sounds is not the right way to approach sound toggle. It literally clear the
player from sounds and let them activate only when timeline get reloaded.
You should be using different approach, either sound object or sound SYNC options.

[quoted text, click to view]

That's not the way to use sound object. First I see it's not initiated in
any way. You call it but it's not define as new object. Than you stop it by
purging player from sound but not actually stopping the sound using sound
object actions. Seem like some major misunderstanding of flash on your end.
Check "sound object" in your help files, there are fully describe methods on
starting and stopping the sound.


[quoted text, click to view]

--
Best Regards

Urami


--

!!!!!!! Merry Christmas !!!!!!!


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
Re: navigation buttons restart my sound rtreitner
12/19/2006 5:51:32 PM
Ok thank you, your suggestions sound like my problem, however as far my
understanding of flash goes, we can only understand what is clearly explained
and explained correctly and what you are pointing me to does neither.

Ok the commands I used are the same ones in the help file under ?Controlling
sound playback using behaviors.? Which all work except my navigation reloads
the sound. These are also the ones they tell most new people to use, and they
don?t work completely error free, as I found out. The problems you point out,
that I have, are not even covered in this section.

Also I have to wonder why such examples would be offered to beginners and
newer people if the company already knows it won?t work correctly, also the
company clearly refuses to post clear step bt step instruction and instead
routinely scrambles the needed information to make it hard to find and
understand. I doubt this was set up this way by accident; and in fact I think
it is on purpose so that people will subscribe to support services.

Ok in the section called ?Creating sound controls? a flash user pointed out
the code examples supplied are wrong and they don?t work. Macromedia admitted
they were but only said a correction would be added into the next release
whenever and whatever that means. So that sections doe?s me no good because
it?s wrong, I?ve already tried this one and can?t get it to work.

In the section ?Using sounds with Sound objects? it simply tells me to ?To use
a sound in a Sound action, you assign an identifier string to the sound in the
Linkage Properties dialog box.? which I?ve already done. That?s it no other
steps are given.


So which part is supposed to be so helpful?

I obviously don?t understand this subject as well as I?d like. So where do I
find clear instruction?

Re: navigation buttons restart my sound rtreitner
12/19/2006 6:09:26 PM
Re: navigation buttons restart my sound urami_
12/20/2006 12:00:00 AM

[quoted text, click to view]

Fair enough. New user might have hard time even with the simple stuff, flash being
new environment unlike any other program.

Please check the following site and read carefully the tutorials
http://www.kennybellew.com/tutorial/
It's very well broke down sound object info. From some very basic stuff, to complex
dynamic mp3 players.
This should help you understand the whole concept.
Let me know if there is something you still can't get, I will try to explain further
even tho I don't believe I could do it better than Kenny :)


--
Best Regards

Urami


--

!!!!!!! Merry Christmas !!!!!!!


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
Re: navigation buttons restart my sound rtreitner
12/20/2006 4:53:56 PM
By the way I noticed you said:

?Sound to me like design concept problem on your end. You must be reentering
frame
where the sound is while using the navigation. Make sure the navigation do not
travel
to frames where the sound is initiated.?

Now, this here seems like you?re telling me not to use sound across scenes
because you don?t know how to do it yourself. I?ve seen plenty of sites use a
background sound and they can control it across the whole movie, and between
scenes. So why is it so hard for anyone to explain how it was done, what is it
a secret or something.

I am getting tired of jokers telling me a background sound has to be within
its own movie and I can?t use it for multiple scenes across my movie. If you
don?t know how its done, and can?t give me any good advice or point me to a
good complete tutorial in flash 8 that actually works and explains the whole
process, then don?t give advice. I am tired of tutorials telling me only part
of how to do something but never providing complete instruction, and I am tired
of people who say it can?t be done, when I?ve seen it used before.

Does anybody out there actually know how to create working on/off sound
buttons in flash 8 that work throughout a flash movie and across different
scenes?

What?s the point of having sound for a background if I can?t use it across the
scenes in my movie?

Re: navigation buttons restart my sound urami_
12/21/2006 12:00:00 AM
[quoted text, click to view]

What is that ? Some kind of reverse psychology ? You tell me "I don't know something"
and to prove you wrong I'm going to step-by-step entire process and explain
how to do it? You are ridicules. There is nothing more basic than sound in Flash
and whether it's across multiple scenes or one scene there is no problem to
control it. I was simply pointing out that it was you who did knot know how to
implement tutorials and it was you who bitch about your own incompetence in Flash.
I did not said anything about Background Sound being impossible or whatever...to
be done in Flash

[quoted text, click to view]

Again... Are you on some kind of weird drug ? Please DO NOT do bong before using
the forum.
Quote from my reply where did I say anything about "background sound". You too weird
for me and you wasting my time. Read the damn tutorial or go back to HELP files and
start with the basics. Not here to hand walk you just because you too much of an lazy
ass to do your half.

I'm adding you to my filters to prevent my news reader from downloading more on
your ridicules posts, I have no time for people like you.


--
Best Regards

Urami


--

!!!!!!! Merry Christmas !!!!!!!


<urami>
If you want to mail me - DO NOT LAUGH AT MY ADDRESS
AddThis Social Bookmark Button