Hi William,

I sent this one a couple of days ago but, somehow, it
did not get through; anyhow here is a revised version.

1)  Have your sound in a linked cast library and use the:

     puppetSound (?), "nameYourSoundFileHere)

2)  Assuming that the graphic for your slider (Thumb)
     is in channel 2 and the slider Bar(the constraint) is
     in channel one,  in a movie script of your first movie
     write this:


global orgLoc

on prepareMovie
   if orgLoc > 0 then
     sprite(2).locH = the volume of sound 1
     else
       sprite(2).locH = 0
     end if
   end

on startMovie
   sprite(2).moveableSprite = True
   sprite(2).constraint = 1
   sound(1).volume = the locH of sprite(2)
   if soundBusy(1) then --this to prevent the sound from restarting
                          everytime you return to your first movie
     nothing
   else
     puppetSound 1, "nameOfYourSoundHere"
   end if
end

on stopMovie
   orgLoc = the locH of sprite 2
end

and in a movie script of your successive movies put this:


global orgLoc

on prepareMovie
   if orgLoc > 0 then
     sprite(2).locH = the volume of sound 1
   end if
end

on startMovie
  sprite(2).moveableSprite = True
   sprite(2).constraint = 1
   sound(1).volume = the locH of sprite (2)
end

HTH

JohnT



William Miller wrote:

 > what I really need is some code that will update the volume slider in
 > the first dir to the same settings in the next dir....
 >
 > if a user changes the volume in the first dir with the slider then
 > when the next dir is loaded the volume slider in the nest dir does not
 > represent the seetings of the first dir...





[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