[Tweener] Sound tweening with caurina in AS2
Zeh Fernando
zeh at zehfernando.com
Thu Oct 30 15:54:39 PDT 2008
No; _sound_volume is the same as doing .setVolume(). Since it *does* stack
that way in AS2, it should work.
Try creating the Sound() object with the _root reference like Baluta
Cristian said. I don't remember whether it acts as a global if you create
without a reference from another scope.
Zeh
On Thu, Oct 30, 2008 at 11:32 AM, Graeme Blackwood <grayhammy at hotmail.com>wrote:
> Hmmm, no it all traces ok. I am not attaching any sounds to this global
> sound object though, because I want it simply to over ride the rest of the
> sound objects on the stage, and in all externally loaded movies. Is it
> possible that _sound_volume only affects an attached sound?
>
> Graeme
>
> *From:* Zeh Fernando <zeh at zehfernando.com>
> *Sent:* Thursday, October 30, 2008 2:02 PM
> *To:* tweener at lists.caurinauebi.com
> *Subject:* Re: [Tweener] Sound tweening with caurina in AS2
>
> 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
>>
>>
> ------------------------------
>
> _______________________________________________
> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.caurinauebi.com/pipermail/tweener-caurinauebi.com/attachments/20081030/8e148a31/attachment.htm>
More information about the Tweener
mailing list