[Tweener] Sound tweening with caurina in AS2
Zeh Fernando
zeh at zehfernando.com
Thu Oct 30 07:02:09 PDT 2008
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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081030/aa235740/attachment.htm>
More information about the Tweener
mailing list