[Golist] HydroTween Callbacks
Patrick Figueroa
patrick.figueroa at gmail.com
Wed Aug 20 22:03:16 PDT 2008
I seem to be running into a wall with the callback. Really simple
process to fade out a SoundChannel's volume and then stop it.
// snd is a SoundChannel
HydroTween.go(snd, {volume:0}, 2, 0, Linear.easeNone, endSound, null,
[snd], null);
// endSound is basically just a method to stop the passed SoundChannel
private function endSound(s:SoundChannel):void{
s.stop();
}
The code above throws the following errors:
ArgumentError: Error #1063: Argument count mismatch on
fl.motion.easing::Linear$/easeNone(). Expected 4, got 5.
at Function/http://adobe.com/AS3/2006/builtin::apply()
at org.goasap.items::LinearGo/update()
at org.goasap::GoEngine$/update()
ArgumentError: Error #1063: Argument count mismatch on
com.benjaminbutton.sound::SoundController/endSound(). Expected 1, got 0.
I'm sure I'm missing something simple. Thanks for the help.
patrick.
On Aug 19, 2008, at 10:04 PM, donovan at hydrotik.com wrote:
> HydroTween.go(textfield, {text:100}, 2, 0, Elastic.easeOut, null,
> onUpdateHandler, null, [arg1, arg2, arg3]);
>
> complete, update, completeArgs, updateArgs
>
>
>
>
> On 8/19/08 9:49 PM, "Patrick Figueroa" <patrick.figueroa at gmail.com>
> wrote:
>
>>
>> Excuse me if this question has been brought up before, I searched my
>> past Go emails and didn't find it.
>>
>> Is there a way of passing arguments to HydroTween callbacks.
>> Something
>> like:
>>
>> HydroTween.go(textfield, {text:100}, 2, 0, Elastic.easeOut, null,
>> onUpdateHandler, [arg1, arg2, arg3]);
>>
>> private function onUpdateHandler(arg1, arg2, arg3):void{
>> // do stuff here
>> }
>>
>>
>> thanks for the helps!
>> patrick.
>>
>>
>> _______________________________________________
>> GoList mailing list
>> GoList at goasap.org
>> http://goasap.org/mailman/listinfo/golist_goasap.org
>
>
>
>
> _______________________________________________
> GoList mailing list
> GoList at goasap.org
> http://goasap.org/mailman/listinfo/golist_goasap.org
More information about the GoList
mailing list