Topic: Flash Question pertaning to sound actions (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11267" title="Pages that link to Topic: Flash Question pertaning to sound actions (Page 1 of 1)" rel="nofollow" >Topic: Flash Question pertaning to sound actions <span class="small">(Page 1 of 1)</span>\

 
InSiDeR
Maniac (V) Inmate

From: Oblivion
Insane since: Sep 2001

posted posted 12-19-2001 04:13

Ok is it possible that I can disable all sounds to 1 site from a differnent one?

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 12-19-2001 12:11

InSiDeR
Maniac (V) Inmate

From: Oblivion
Insane since: Sep 2001

posted posted 12-19-2001 23:31

yes it was poorly explained... more like a remote. like say i had a main site with my flash playing sound and then i click a button and it pops up a window! well i want to be able to stop all sounds in my main page from that window that just popped up, is it possible?

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 12-20-2001 17:59

Yeah, no problem. I'll tell you what's the problem - getting the sound to start again when the remote closes.


I did this for a friend recently. He wanted to show some multimedia projects he had done with school kids. The main movie had a soundtrack, but some thumbnails open windows with quicktime movies with their own soundtrack. I had to stop the main sound so it didn't interefere.

I hoped to do something slick with javascript and on.focus(), on.blur() kind of things - stop the music when the main window loses focus, start it again when the main window regains focus. But ... for a variety or feasons (chief being that Mac IE5 doesn't take javascript chatter very gracefully from Flash) I needed a workaround.

Here's the basis for what I did. This is a simplification, but you'll hopefully make it fit your situation. I have 2 frames in the main movie. Frame one has a stop() action, and a button with script saying (in pseudocode):

on(release) {stop the sound, open the popup, and go to and stop frame 2}

Go it?

Okay, what's tricky about frame 2 of the main movie? Frame 2 had a giant, invisible button covering pretty much the whole move (with holes for whatever other buttons you need to stay "live"). This button has a script that says something like:

on (rollOver){start the sound up again, go to and stop on frame 1}

So the sequence goes like this: you click a button. The main sound stops, the movie advances a frame, the new window pops up; You close the pop up, you can't avoid rolling over the big button, the sounds start again and the movie rolls backward one frame.

Is that clear? It's a wonky approach, but it worked for me.

InSiDeR
Maniac (V) Inmate

From: Oblivion
Insane since: Sep 2001

posted posted 12-21-2001 01:04

uhhh, im very confused,

"on(release) {stop the sound, open the popup, and go to and stop frame 2}"????

that wouldnt work because it would do both, stop sound, and open a pop up window. Im talking about the window already being open, and the stop sound button being in that window but it turns off sound from a movie in a different window.

kretsminky
Maniac (V) Inmate

From: A little lower... lower... ahhhhhh, thats the spot
Insane since: Jun 2000

posted posted 12-21-2001 01:09

What he is saying is that its not that easy to get JS to interact with Flash in a way that you can easily create a remote.

What his alternative does it make it so that when you rollover the page that is now under the remote it turns the music back on.

Its going to be tough to control a Flash file in another window with JS.

Steve
Maniac (V) Inmate

From: Boston, MA, USA
Insane since: Apr 2000

posted posted 12-21-2001 02:21

Ooops. Sorry InSiDeR. Now I get it. I just gave you and long and tedious solution to a problem you don't have!

Well, now that I understand - uh - I don't know the answer.


Sorry!

InSiDeR
Maniac (V) Inmate

From: Oblivion
Insane since: Sep 2001

posted posted 12-21-2001 10:21

lol i didnt really think that it could be done but i just had to make sure by asking you flash gurus

GRUMBLE
Paranoid (IV) Mad Scientist

From: Omicron Persei 8
Insane since: Oct 2000

posted posted 12-21-2001 12:07

ahhh. now when i read the other thread, i understand what you want, and im afraid this is not possible without JS. and i dont know about JS-Flash communication...

InSiDeR
Maniac (V) Inmate

From: Oblivion
Insane since: Sep 2001

posted posted 12-22-2001 16:25

yea, i didn't really think that it could be done.



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu