[Tweener] Sound tweening with caurina in AS2

Graeme Blackwood grayhammy at hotmail.com
Thu Oct 30 06:51:50 PDT 2008


Hi,

I am having trouble getting sound tweening to work with the special properties.  On a button click, I want to fade out all the sound in my movie by using a global sound object in the root.  This works fine with a draggable volume slider I have made, but tweener doesn't seem to be having any effect when I click the forward button to make the sound fade out.   My code looks like the following:

import caurina.transitions.properties.SoundShortcuts;
SoundShortcuts.init();

_root.globalSound = new Sound();
_root.globalSound.setVolume(100);

forwardButton.onRelease = function() {
    Tweener.addTween(_root.globalSound, {_sound_volume:0, time:1, transition:"easeIn"});
}

Anything obvious?

Many thanks,

Graeme
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081030/d43463e4/attachment.htm>


More information about the Tweener mailing list