You need to set a delay between function calls.
objectA.slideTo(64,18);
setTimeout("objectB.slideTo(64,97);",100);
setTimeout("objectB.slideTo(64,120);",100);
ect.

The the best way is a self calling function.

function doSlide(x,y){
    objectA.slideTo(x,y);
    setTimeout("doSlide(nextX,nextY);",100);
}

You can use a couple of arrays to hold the actual x y values.
var xs = new Array();
var ys = new Array();
xs[0]=20;
xs[1]=30;
xs[2]=40;

ect.. then you need only keep an index indictaion at hwre in the array you
are..

Doug Melvin
----- Original Message -----
From: "Geoffrey Makstutis" <[EMAIL PROTECTED]>
To: "Dynapi" <[EMAIL PROTECTED]>
Sent: Tuesday, January 23, 2001 1:11 PM
Subject: [Dynapi-Help] sequential slides


> Hi,
>
> This is, I am sure, a terribly simple thing to achieve but it is giving me
> grief.
>
> I have a series of simple horizontal slides that I would like to have
occur
> in sequence. When the first one is finished the next one will start, and
so
> on.
>
> I have the sliding part working, but if i simply call:
>
> objectA.slideTo(64,18)
> objectB.slideTo(64,97)
> etc...
>
> They all seem to happen nearly simultaneously.
>
> If I try to call a simple function to check position, like
>
> function check(){
>     if (objectA.x == 64){
>         objectB.slideTo(64,97)
>         }
>
> I only get the first object sliding.
>
> Any help you might suggest would be greatly appreciated.
>
> Thanks
>
>
> _______________________________________________
> Dynapi-Help mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/dynapi-help


_______________________________________________
Dynapi-Help mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-help

Reply via email to