this._recalculateSlides(currentslide);
this._recalculateSlides(currentslide);
this._recalculateSlides(currentslide);
this.slideTo(this.currentslide+1);
this.slideTo(this.currentslide-1);
this.content.subviews.length-1)
{
Debug.warn("The selected slide is out of range: "+slidenr);
return;
}
_stopAnimation();
this._slideto = slidenr;
this._slideduration = slideduration / ((slidenr - this.currentslide) == 0 ? 100 : (slidenr - this.currentslide));
this._slideduration = this._slideduration < 0 ? this._slideduration*(-1) : this._slideduration;
var nextslidenr = this.currentslide < slidenr ? this.currentslide+1 : this.currentslide-1;
nextslidenr = this.currentslide == slidenr ? this.currentslide : nextslidenr;
nextslidenr = this._recalculateSlides(nextslidenr);
this.setAttribute("currentslide", nextslidenr);
]]>
this.currentslide)
{
this._recalculateRightFrom(newopenslide > this.currentslide ? newopenslide+1 : this.currentslide);
this._recalculateLeftTo(newopenslide > this.currentslide ? this.currentslide : newopenslide-1);
} else {
this._recalculateLeftTo(newopenslide > this.currentslide ? this.currentslide : newopenslide-1);
this._recalculateRightFrom(newopenslide > this.currentslide ? newopenslide+1 : this.currentslide);
}
this._recalculateOpenSlide(newopenslide);
} else {
this._recalculateLeftTo(newopenslide-1);
this._recalculateOpenSlide(newopenslide);
this._recalculateRightFrom(newopenslide+1);
}
return newopenslide;
]]>
this.currentslide)
{
if (this.currentslide == Math.round(this.content.subviews.length/2-0.5) && this.content.subviews.length > 3)
{
var svarray = this.content.subviews;
var l = svarray.length-1
var tmp;
var tmp1 = this.content.subviews[l];
svarray[l] = svarray[0];
for (var i = l-1; i >= 0; i--)
{
//Debug.write("replacing:", this.content.subviews[i], tempslide);
tmp = svarray[i];
svarray[i] = tmp1;
tmp1 = tmp;
}
this.content.subviews = svarray;
this._slideto--;
this.currentslide--;
return newopenslide-1;
}
}
if (newopenslide < this.currentslide)
{
if (this.currentslide == Math.round(this.content.subviews.length/2-0.5) && this.content.subviews.length > 3)
{
var svarray = this.content.subviews;
var l = svarray.length-1
var tmp;
var tmp1 = this.content.subviews[0];
svarray[0] = svarray[l];
for (var i = 1; i <= l; i++)
{
//Debug.write("replacing:", this.content.subviews[i], tempslide);
tmp = svarray[i];
svarray[i] = tmp1;
tmp1 = tmp;
}
this.content.subviews = svarray;
this._slideto++;
this.currentslide++;
return newopenslide+1;
}
}
return newopenslide;
]]>
= 0; i--)
{
var pslide = this._getSlideByNumber(i);
var newwidth = maxwidthperslide - (spacer-startspacer);
var newheight = pslide.originalheight * (newwidth / pslide.originalwidth);
var newx = storagewidth-newwidth-spacer*2;
var newy = this.height/2-newheight-spacer;
pslide.setAttribute("currentslide", false);
pslide.doSlide(newwidth, newheight, newx, newy, this._slideduration);
spacer +=10;
if (i == lastslide)
{
if (!this._slidedonedel)
{
this._slidedonedel = new LzDelegate(this, "_keepsliding");
}
this._slidedonedel.register(pslide, "onstop");
}
pslide.slidenumber = i;
}
]]>
= firstslide-1; i--)
{
var pslide = this._getSlideByNumber(i);
pslide.bringToFront();
}
for (var i = firstslide; i <= lastslide; i++)
{
var pslide = this._getSlideByNumber(i);
var newwidth = maxwidthperslide - (spacer-startspacer);
var newheight = pslide.originalheight * (newwidth / pslide.originalwidth);
var newx = storagex+spacer*2;
var newy = this.height/2-newheight-spacer;
pslide.setAttribute("currentslide", false);
pslide.doSlide(newwidth, newheight, newx, newy, this._slideduration);
spacer += 10;
pslide.slidenumber = i;
}
]]>
this._slidedonedel.unregisterAll();
if (_slideto == this.currentslide)
return;
this.slideTo(_slideto);
if (this._timerstop)
{
this._timerstop = false;
this.setAttribute("istimerstarted", true);
return;
}
if (!this._timerdel)
this._timerdel = new LzDelegate(this, "_timerRefresh");
LzTimer.addTimer(this._timerdel, this.timerms);
this._timerstop = false;
this.setAttribute("istimerstarted", true);
if (this._timerstop || !this.istimerstarted)
return;
this._timerstop = true;
this.setAttribute("istimerstarted", false);
if (this._timerstop)
{
this._timerstop = false;
return;
}
this.slideUp()
LzTimer.addTimer(this._timerdel, this.timerms);
d = (d == Infinity) ? 100 : d;
this.anim.stop();
this.anim.paramx.setAttribute("to", x);
this.anim.paramx.setAttribute("duration", d);
this.anim.paramy.setAttribute("to", y);
this.anim.paramy.setAttribute("duration", d-(d/10));
this.anim.paramw.setAttribute("to", w);
this.anim.paramw.setAttribute("duration", d-(d/10));
this.anim.paramh.setAttribute("to", h);
this.anim.paramh.setAttribute("duration", d-(d/10));
/*if (m == "normal")
m = "easeboth";
else
{
if (x > this.x)
if (w > this.width)
m = "easein";
else
m = "easeout";
else
if (w > this.width)
m = "easein";
else
m = "easeout";
}*/
this.anim.doStart();
<_bottomshadow visible="${parent.shadow}" />
parent.onstop.sendEvent();
parent.onstart.sendEvent();