2D Toolkit Forum

2D Toolkit => Support => Topic started by: jasonshow on September 11, 2012, 02:32:17 pm

Title: how can i implement "animationCompleteDelegate" with javascript ?
Post by: jasonshow on September 11, 2012, 02:32:17 pm
how can i implement "animationCompleteDelegate" with javascript ?
just like C# ?

thanks a lot !
Title: Re: how can i implement "animationCompleteDelegate" with javascript ?
Post by: unikronsoftware on September 11, 2012, 03:35:47 pm
Its really straightforward.

Code: [Select]
// this is your function
function XXX(...)
{
}

anim.animationCompleteDelegate = XXX;
Thats it.
Title: Re: how can i implement "animationCompleteDelegate" with javascript ?
Post by: jasonshow on September 11, 2012, 04:24:20 pm
thanks !