From: Richard B. <ric...@us...> - 2001-11-01 12:26:15
|
Update of /cvsroot/dynapi/dynapi/src/lib/dynapi/util In directory usw-pr-cvs1:/tmp/cvs-serv13783 Modified Files: imganim.js Log Message: Applied [ #464373 ] imganim FIX Index: imganim.js =================================================================== RCS file: /cvsroot/dynapi/dynapi/src/lib/dynapi/util/imganim.js,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -r1.4 -r1.5 *** imganim.js 2001/04/03 20:38:20 1.4 --- imganim.js 2001/11/01 12:26:13 1.5 *************** *** 57,67 **** this.playing = false; this.stop(); ! if (this.dlyr!=null) this.dlyr.invokeEvent("imgrun"); }; ImageAnimation.prototype.run = function () { if (!this.playing || this.imgAnim.playing==null || this.dlyr==null) return; ! var anim = this.imgAnim[this.imgAnim.playing]; ! if (anim.frame==0 && this.img==anim[anim.frame]) { anim.frame++; // skip 1st frame if same --- 57,67 ---- this.playing = false; this.stop(); ! if (this.dlyr!=null) this.dlyr.invokeEvent("imgstop"); }; ImageAnimation.prototype.run = function () { if (!this.playing || this.imgAnim.playing==null || this.dlyr==null) return; ! var anim = this.imgAnim[this.imgAnim.playing]; ! if (anim.frame==0 && this.img==anim[anim.frame]) { anim.frame++; // skip 1st frame if same *************** *** 69,87 **** if (this.dlyr!=null) this.dlyr.invokeEvent("imgrun"); this.dlyr.setImage(anim[anim.frame]); ! if (anim.frame>=anim.length-1) { if (anim.loops) { if (anim.alternates && anim.direction==0 && anim.frame==anim.length-1) { ! anim.direction = 1; anim.frame = anim.length-2; } else anim.frame = 0; } - else if (anim.resets) { - anim.frame = 0; - this.stop() - } else { ! this.stop() } } --- 69,84 ---- if (this.dlyr!=null) this.dlyr.invokeEvent("imgrun"); this.dlyr.setImage(anim[anim.frame]); ! if (anim.frame>=anim.length-1) { if (anim.loops) { if (anim.alternates && anim.direction==0 && anim.frame==anim.length-1) { ! anim.direction = 1; anim.frame = anim.length-2; } else anim.frame = 0; } else { ! if (anim.resets) anim.frame = 0; ! this.stopAnimation(); } } |