|
From: Rich Bagnall on 17 Apr 2008 15:30 Sorry, How would I go about this? I'm really strugling with it and nothing in the docs seems to help! Many thanks, Rich
From: Mike Blaustein on 17 Apr 2008 15:51 On your existing volume controller, save the volume as a global, for example, gVolume Then on the QT sprite, add this: global gVolume on beginSprite me sprite(me.spriteNum).volume=gVolume end If the volume controller is on the same frame as the QT sprite, and you need for it to adjust the volume "live", then add this: on enterFrame me sprite(me.spriteNum).volume=gVolume end
From: Rich Bagnall on 17 Apr 2008 16:43 Oh I see. How do you save the existing volume as a global? At the moment I'm using a script from the Director library on the volume fader so I don't know in depth how it works. Thanks.
From: Mike Blaustein on 17 Apr 2008 16:59 If you mean the Channel Volume Slider" behaviour, then you need to add this at the top: global gVolume Then, in prepareFrame, put this right before the end: gVolume=pLastVol That should do it. If it is possible to get to the movie before the volume slider, then you can add this to the script I sent before to avoid errors: on beginSprite me if voidP(gVolume) then gVolume=255 Feel free to change that 255 to whatever your default volume should be.
From: Rich Bagnall on 17 Apr 2008 18:00 brilliant, thanks!
|
Pages: 1 Prev: rectangular to polar via imaging lingo? Next: Exporting an application for a Mac |