[Tweener] Tweener Sound Not working
Zeh Fernando
zeh at zehfernando.com
Thu Oct 9 08:17:25 PDT 2008
Exactly. Sound starts with full volume. You need to create it, set it to
mute, and then tween it later it'll go from 0 to the new value.
Zeh
On Thu, Oct 9, 2008 at 2:23 AM, Baluta Cristian <cristi.baluta at gmail.com>wrote:
> it's because when you attach the sound has the volume 100 already, you need
> to set it to 0 then apply the tweener to it.i think it's done with:
>
> mpop.setVolume(0);
>
>
> On Thu, Oct 9, 2008 at 7:49 AM, Shannan Bunch <shannan_bunch at hotmail.com>wrote:
>
>> hey thank you that worked!
>> the only thing is the delay doesn't seem to be working at all. i wanted to
>> try to sync it to the animation which might be hard. but even with setting
>> the delay to a high number the sounds plays right away on start. any ideas?
>>
>> ----- Original Message -----
>> *From:* Zeh Fernando <zeh at zehfernando.com>
>> *To:* tweener at lists.caurinauebi.com
>> *Sent:* Wednesday, October 08, 2008 1:26 PM
>> *Subject:* Re: [Tweener] Tweener Sound Not working
>>
>> 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
>>>
>>>
>> ------------------------------
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Cristi
> www.ralcr.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/20081009/660685b9/attachment-0001.htm>
More information about the Tweener
mailing list