[Tweener] Tweener Sound Not working
Baluta Cristian
cristi.baluta at gmail.com
Thu Oct 9 11:39:35 PDT 2008
import the Tweener class also, but i'm not shure if this is the problem,
what is right is that will not complain if you use it without importing it.
also, begin with the most basic usage:
- let the sound with volume 100 and apply the tweener to 0, and get rid of
the delay
On Thu, Oct 9, 2008 at 8:27 PM, Shannan Bunch <shannan_bunch at hotmail.com>wrote:
> I'm AS2.
>
> ----- Original Message -----
> *From:* Benny Mårtensson <benny at gregory.se>
> *To:* tweener at lists.caurinauebi.com
> *Sent:* Thursday, October 09, 2008 10:23 AM
> *Subject:* Re: [Tweener] Tweener Sound Not working
>
> Are you in AS2 or AS3? In AS2 its 100 and in AS3 just 1.
> regards,
> Benny
>
> 9 okt 2008 kl. 19.16 skrev Shannan Bunch:
>
> Ok, makes sense! But doing it like this which im not sure is the
> correct order just makes the sound mute and never play....
>
> import caurina.transitions.properties.SoundShortcuts;
> SoundShortcuts.init();
> var mpop:Sound = new Sound();
> mpop.attachSound("button_pop1");
> mpop.start();
> mpop.setVolume(0);
> Tweener.addTween(cntr_w, {_xscale:250, _yscale:250,delay:.5, time:2.5,
> _alpha:100, transition:"easeOutElastic"});
> Tweener.addTween(mpop, {_sound_volume:100, delay:.5, transition:"linear"});
>
> But Ive played around w/ the order and nothing seems to work. I've also
> tried assigning the classes in the linkage and it doesn't change.
>
> ----- Original Message -----
> *From:* Zeh Fernando <zeh at zehfernando.com>
> *To:* tweener at lists.caurinauebi.com
> *Sent:* Thursday, October 09, 2008 8:17 AM
> *Subject:* Re: [Tweener] Tweener Sound Not working
>
> 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
>>
>>
>
> ------------------------------
>
> _______________________________________________
> 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
>
>
> *G R E G O R Y*
> --------------
> Benny Mårtensson
> Tegelgårdsgatan 7
> 211 33 Malmö
> 040-12 06 00
> 0709-59 83 01
> benny at gregory.se
>
>
>
> ------------------------------
>
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081009/8d1fdf8c/attachment-0001.htm>
More information about the Tweener
mailing list