Thanks to both Coline and Nicolas - I took Nicolas's lead as my volume
controls are for digital videos and now the volume does go up and down
but when I go to a different QT ( I have 30) the level reverts to default
and only gets reset to previous level when the volume buttons are clicked
again - that is why I was trying to make it a system wide level.
This means that if I clicked all the way to max volume on next QT volume
back bown and if I clicked to low volume the volume on next QT is back to
default (higher volume) but when I click up button the volume is lower (
ie where it left off at the last QT setting.
I'm trying to make clear what is happening - sorry if I'm not explaining
it very well, Essentially I woant the level to stay at whatever level was
set in one QT to the next QT.
Here's my code:
on startMovie
global vol
set vol to 125
set the volume of sprite 6 to vol
end
(sprite 6 being my QT)
for volumeplus
on mouseUp
global vol
if vol<255 then
set vol to vol+10
set the volume of sprite 6 to vol
end if
end
and for volumeminus
on mouseUp
global vol
if vol>5 the
set the vol to vol -10
set the volume of sprite 6 to vol
end if
end
I'll tryout Colin's lead too to see if that can solve my problems.
One more question - do I have to rewrite the code for the Mac version as
it seemed to work with no problems- if I can get it work on PC will it
work on Mac. What I'm asking is sould I try to use the same code for both
platforms or is it OK to have different sets of code
Thank you for your help.
Nicolas MAREY wrote:
> Hello,
>
> I had the same problem, and I resolved this
> by detecting if I had a video in the frame,
> and then set the volume of sprite of
> the video instead of setting the soundLevel.
>
> Hope it will help you.
> -----------------------------------------------------
> Nicolas MAREY
> ADELIS - D�veloppeur Multim�dia
> -----------------------------------------------------
>
> [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!]
[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!]