[Tweener] Sound tweening with caurina in AS2
Graeme Blackwood
grayhammy at hotmail.com
Thu Oct 30 07:32:53 PDT 2008
Hmmm, no it all traces ok. I am not attaching any sounds to this global sound object though, because I want it simply to over ride the rest of the sound objects on the stage, and in all externally loaded movies. Is it possible that _sound_volume only affects an attached sound?
Graeme
From: Zeh Fernando
Sent: Thursday, October 30, 2008 2:02 PM
To: tweener at lists.caurinauebi.com
Subject: Re: [Tweener] Sound tweening with caurina in AS2
No, nothing obvious. Before anything, I'd suggest two things to add to onRelease to test:
trace(Tweener);
trace(_root.globalSound);
If either traces undefined, there's the problem.
Zeh
On Thu, Oct 30, 2008 at 10:51 AM, Graeme Blackwood <grayhammy at hotmail.com> wrote:
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
_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
--------------------------------------------------------------------------------
_______________________________________________
Tweener mailing list
Tweener at lists.caurinauebi.com
http://lists.caurinauebi.com/listinfo.cgi/tweener-caurinauebi.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081030/be0e3bc4/attachment.htm>
More information about the Tweener
mailing list