Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: sound on off button
From: Phil Ward
Date: Wed, 15 Dec 1999 12:41:54 GMT

I have a sound on/off button, which works fine when a button is clicked to
go to another scene (other than the sound on/off button) there is a stop all
sound command, which works fine. The problem starts when I then click on
another button to go to another scene the sound starts again, something to
do with setting variables perhaps?

Here is the script for the sound on off button...

On (Release)
If (playing = 0)
Stop All Sounds
Begin Tell Target ("/Sound")
Go to and Stop ("Stop")
End Tell Target
Set Variable: "playing" = 1
Else
Begin Tell Target ("/Sound")
Go to and Stop ("Play")
End Tell Target
Set Variable: "playing" = 0
End If
End On

If you need to see the movie in action www.worksmc.com/pcp Click on 'What is
PC Partners' button the sound stops, which is fine, click on 'Why
Hewlett-Packard?', still no sound, which is fine, now click on 'What is PC
Partners' button again, and the sound starts, this is what I am trying to
stop. I have tried putting a 'stop all sound' command in the frame that the
movie jumps to but the sound starts briefly.

I have tried various variations including changing the "playing" variable on
the frame and the button but to no avail. Hair pulling out time now.

The sound should only be playing in the intro section, not any content
pages.

Long winded I know, anyone any ideas. Maybe a better way of handling sound
on/off.

I have another option for sound on/off from Chris which I will try and work
out a solution with.

Regards

Phil Ward
Crescent Graphics

phil-watcrescent-graphics [dot] co [dot] uk

New Media <> Internet <> Visuals <> A/W






flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Streaming Media WEST '99 Conference & Exhibition
"The Worlds largest Internet Audio & Video Event"
December 7 - 9, San Jose Convention Center, California

Reserve your space today at http://www.streamingmedia.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]