[Tweener] Tweener Sound Not working

Zeh Fernando zeh at zehfernando.com
Wed Oct 8 13:26:45 PDT 2008


You need a reference to the actual sound. It doesn't have to be "on the
stage", but it needs to be a sound reference. Something like

var mpop:Sound = new Sound();
mpop.attachSound("pop");
mpop.start();

And *then* you can tween the volume of "mpop" (any other name will do
anyway, "pop" is just the linkage reference).

Zeh

On Wed, Oct 8, 2008 at 5:13 PM, Shannan Bunch <shannan_bunch at hotmail.com>wrote:

>  Hi,
>
> I am using the AS2 vs of tweener and have a menu of buttons that animate on
> the stage. I wanted to add a sound to each as they pop up using tweener. I
> think I have the code correct from reading the documentation but it is so
> far still not working. Here is my code:
>
> import caurina.transitions.Tweener;
> import caurina.transitions.properties.SoundShortcuts;
> SoundShortcuts.init();
> //logo
> Tweener.addTween(b1, {_x:20, time:1.5, transition:"easeOutExpo"});
> Tweener.addTween(b2, {_x:162, time:3, transition:"easeOutBounce"});
> Tweener.addTween(b3, {_x:120, time:1, transition:"easeOutExpo"});
> Tweener.addTween(b4, {_y:88, _rotation:198, time:2.5,
> transition:"easeOutBounce"});
>
> //buttons
> Tweener.addTween(cntr_w, {_xscale:250, _yscale:250,delay:.5, time:2.5,
> _alpha:100, transition:"easeOutElastic"});
> Tweener.addTween(pop, {_sound_volume:100, delay:.5, transition:"linear"});
>
> I have the sound in my library only called "pop". Is this correct or does
> it also need to be on the stage at some point?
>
> Thanks, if anyone can help!
>
> _______________________________________________
> 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/20081008/993e410c/attachment.htm>


More information about the Tweener mailing list