Make sure that you are creating separate bandInfos for each timeline, not 
passing the same one to each call to create your new Timeline.
The centerVisibleDate depends on the ether being used for the band, and if you 
pass the same bandInfo objects to multiple timelines, they end up all using the 
same ether.

You might also find it easier to use a mediator pattern for synchronizing your 
timelines. You avoid having them refer to each other explicitly and can 
centralize the logic for how they interact. 
Super-trivial example:

function Mediator(listeners) {
  this._listeners = listeners;
  }

Mediator.prototype.sync = function(date) {
        var i = this._listeners.length;
        while (i--) {
                this._listeners[i].getBand(0).setCenterVisibleDate(date);
        }
}

var mediator = new Mediator([TEOI81A2X,XQK3K0LEY,VOY3K0LEW]);

TEOI81A2X.getBand(0).addOnScrollListener(function(band) {
  mediator.sync(band.getCenterVisibleDate());
});
            
XQK3K0LEY.getBand(0).addOnScrollListener(function(band) {
  mediator.sync(band.getCenterVisibleDate());
});
            
VOY3K0LEW.getBand(0).addOnScrollListener(function(band) {
  mediator.sync(band.getCenterVisibleDate());
});

--Mike

On Jan 26, 2012, at 8:45 PM, Jeff Roehl wrote:

> TEOI81A2X.getBand(0).addOnScrollListener(function(band) {
> Var centerDateXQK3K0LEY = band.getCenterVisibleDate();
> XQK3K0LEY.getBand(0).setCenterVisibleDate(centerDateXQK3K0LEY);
> });
> 
> XQK3K0LEY.getBand(0).addOnScrollListener(function(band) {
> Var centerDateVOY3K0LEW = band.getCenterVisibleDate();
> VOY3K0LEW.getBand(0).setCenterVisibleDate(centerDateVOY3K0LEW);
> });
> 
> VOY3K0LEW.getBand(0).addOnScrollListener(function(band) {
> Var centerDateTEOI81A2X = band.getCenterVisibleDate();
> TEOI81A2X.getBand(0).setCenterVisibleDate(centerDateTEOI81A2X);
> });
>  

-- 
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en.

Reply via email to