I think someone else has already suggested this, but the best way of getting this to work is with the use of the onslideend event.  This event will be triggered at the end of each of the slides.  If you have a listener attached to each layer, this listener can then trigger the next slide.  Here's an example:

CellSlide1Listener=new EventListener();
CellSlide1Listener.onslideend=function(e) { CellSlide2.slideTo(x,y); };
CellSlide1.addEventListener(CellSlide1Listener);

CellSlide2Listener=new EventListener();
CellSlide2Listener.onslideend=function(e) { CellSlide3.slideTo(x,y); };
CellSlide2.addEventListener(CellSlide2Listener);

..... etc.
 

Ruben van der Steenhoven wrote:

Robert and others,

many thanks for the solution you've provided but none of them
seems to work. Let me get exactly clear what i want to accomplish:
I've created 5 Dynlayers that are child of a parent layer
I have text in these layers, now i like to shift these layers in the
mother layer ONE AFTER THE OTHER...
Here's the problem, due to the fact that the slideTo works on a
thread, they get all fired at approx. the same time.
I've tried using setTimeout, checking for the position of the previous
layer, using an event handler but none of these solutions seemed
to work, i either got them all together again or the second Dynlayer
never got fired.
Is there anyone who has a working solution for this?
It would surely be appreciated, i've been puzzling on this for a week
now...

>
> Please see my previous post on firing sequential slideTo's.
>
> --
> // Robert Rainwater
>
> On 1/23/2001, 6:22:27 PM EST, Ruben wrote about "[Dynapi-Help] firing
> several SlideTo 's after oneother":
>
> > Hi,
>
> > i've got the slideto function working now, after using the snapshot
> > version of the library, but now i want to fire several SlideTo 's
> > after eachother, so the second waiting for the first to finish etc.
> > I've tried several approaches, but to no avail, they keep firing
> > simutaneously. Is there a way to know wether the previous slideto
> > has finished so i can start the next one?
>
> > Thanks in advance!
>
> > _______________________________________________
> > Dynapi-Help mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-help
>
>
> ----------------------
> DynAPI Snapshots: http://dynapi.sourceforge.net/snapshot/
> DynAPI Homepage: http://dynapi.sourceforge.net/
>
>
>
>

Groetz,

Ruben van der Steenhoven
Webmeesters
 
 

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

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

Reply via email to