Yeah we can do that but instead you have to check for null, !x will return true if you 
try to do slideTo(0,0) therefore it wouldn't do anything.

so instead do:

if (x==null) x = this.x;
if (y==null) y = this.y;

Dan

On Mon, Dec 11, 2000 at 05:16:26AM +0100, Richard :o wrote:
> hi,
> In attached example the slideTo and slideBy used to run if one parameter is set to 
>null
> can this be included in the new version again? ie:    if (!x) x = this.x;
> 
> in the same attachement the slideTo function calls itself in it's own event 
>listener, this no longer works, 
> is this by design or error?
> 
> Cheers,
> Richard :)


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/dynapi-dev

Reply via email to