Hi Conrad
If you still desire the effect of getting a gradual lowering or increasing
of the volume, then I suggest you make a little modification to your
methodology.
< behaviour attached to button sprite >
property p_Bool_ChangeVolume
property p_Int_FrameCount
property p_Int_FramesBetweenChanges
on beginSprite( me )
p_Int_FramesBetweenChanges = 15
end beginSprite
on mouseDown( me )
p_Bool_ChangeVolume = TRUE
p_Int_FrameCount = 0
end mouseDown
on mouseUp( me )
p_BOol_ChangeVolume = FALSE
end mouseUp
on mouseUpOutside( me )
p_Bool_ChangeVolume = FALSE
end mouseUpOutside
on exitFrame( me )
if p_Bool_ChangeVolume then
if p_Int_FrameCount < FramesBetweenChanges then
p_Int_FrameCount = p_Int_FrameCount + 1
else
p_Int_FrameCount = 0
-- do your volume change here
-- end of volume change code here
end if
end if
end exitFrame
< end of behaviour code >
You will need to add your volume change code to this within the exitFrame
handler or if your volume change code is handled in a separate handler then
you can place a call out to it. You can adjust the length of time before
each decrement of volume by changing the number of frames that must pass
before the next decrement ( that is: p_Int_FramesBetweenChanges = 15 ) in
the beginSprite handler.
This is all email lingo and thus may not function as desired.
Hope this helps.
Sincerely
Mark R. Jonkman
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/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!]