[Tweener] Tweener Sound Not working
Shannan Bunch
shannan_bunch at hotmail.com
Wed Oct 8 13:13:58 PDT 2008
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081008/58ed7745/attachment.htm>
More information about the Tweener
mailing list