It seems like you are thinking

Sound channels can have a volume setting whether or not any sound is 
playing, so you can't check that property.

Why don't you use a flag?

--------------------
property toggleSoundOff

on beginSprite me
   toggleSoundOff = 1
end

on mouseUp me
   if toggleSoundOff = 1 then
      sound(1).fadeTo(  1, 1000)
   else
      sound(1).fadeTo(255,1000)
   end if
   toggleSoundOff = NOT toggleSoundOff
end mouseUp me
--------------------

hth

-Buzz

At 12:54 PM -0500 3/25/02, you wrote:
>Trying to use the following attached to a sprite in a shock file to control
>audio -
>
>on mouseUp me
>   if sound(1).volume > 1 then
>     sound(1).fadeTo(1, 1000)
>   else
>     sound(1).fadeTo(255,1000)
>   end if
>end mouseUp me
>
>does not seem to work, any ideas/suggestions/fixes will be greatly
>appreciated.
>
>TIA,
>
>Doug
>
>[To remove yourself from this list, or to change to digest mode, go 
>to http://www.penworks.com/lingo-l.cgi  To post messages to the 
>list, email [EMAIL PROTECTED]  (Problems, email 
>[EMAIL PROTECTED]). Lingo-L is for learning and helping with 
>programming Lingo.  Thanks!]

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/lingo-l.cgi  To post messages to the list, email 
[EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED]). Lingo-L is for 
learning and helping with programming Lingo.  Thanks!]

Reply via email to