lists-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
2006-Jun-08 20:58 UTC
[Fwd: stopping effects, help me again]
My friend Sigi wrote:> Pulsator = Class.create(); > Pulsator.prototype = {initialize: function(element,options) > { > this.element = element; > this.options = options || {}; > this.options.afterFinish = this.action.bind(this); > this.stopped = false; > this.action(); > }, > action: function(){ > if(!this.stopped) new Effect.Pulsate (this.element,this.options); > }, > > stop: function() { > this.stopped = true; > } > }problem real and original is line: this.stopped = true; So i test to Hide effect and then a Appear effect but not work :( thanks rag