[Laszlo-dev] Notification that data replication is finished?

Don Hopkins dhopkins at DonHopkins.com
Tue Jun 7 16:32:27 PDT 2005


Is there a good way to get notified when data replication is finished
(after the children have been initialized)? 

In LzReplicationManager.as I found an "onclones" event that the
replication manager sends to itself after it's done replicating (as well
as onnodes which it sends to itself before replication, and
onclonenumber that's sent to the clone during replication). I tried
defining that event on the datapath of the prototype object being
replicated, and on the prototype itself, but neither approach worked. Is
the replication manager dynamically created, or is the prototype morphed
into the replication manager itself? Is there a way for me to hook into
the replication manager's events? 

I remember seeing some example code that did something like what I want,
but I can't remember where I saw it (in the documentation examples
somewhere). The container got notified after the clones were created but
before they were initialized, then it registered an oninit event on the
last child, so it was called back after the last child was initialized.
But that seemed like a pretty tricky way to do something that should be
simpler. 

Is there a simple way to do this, or could we add an easy to use event
that I can just register on the parent container, please? 

	-Don




More information about the Laszlo-dev mailing list