oops forgot to attach a sample usage ;)

var p = new Pulsator('id_of_element');

runs until

p.stop();

but finishes the last effect

brgds

On 5/19/06, Siegfried Puchbauer <[EMAIL PROTECTED]> wrote:
It could work that way:

Pulsator = Class.create();
Pulsator.prototype = {
initialize: function(element){
this.stopped = false;
new Effect.Puslate(element, { afterFinish: this.action.bind(this) });
},
action: function(){
if(!this.stopped) new Effect.Puslate(element, { afterFinish: this.action.bind(this) });
},
stop: function() { this.stopped = true; }
}


hth

sigi

On 5/19/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
ok, duration parameter of effect.pulsate is only duration.
If you observe this effect only beat 5 times for any duration.
That i need that it beats 6 times for example or more.
thanks Jeremy
rag

> On Thursday 18 May 2006 13:35, [EMAIL PROTECTED] wrote:
>> hi again
>>
>> How can i extend 5 times for effect.pulsate beats?
>> I need that continue beat until other event client happened
>>
>> about my other mail, is there other solution more elegant that this? :
>> new Effect.Pulsate(leccion[i_leccion],{duration: 5,from: 1});
>
> that's how you tell it how long to do it.
>
> If you want it to go until you cancel it, just effect.pulsate with like
> duration: 200000 (several days)
>
> -Jeremy
>
> --
> Jeremy Kitchen ++ [EMAIL PROTECTED]
>
> http://ipaction.org/ -- defend your rights to fair use
> _______________________________________________
> Rails-spinoffs mailing list
> Rails-spinoffs@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>


Un saludo.
Raúl Andrés
Dir. Gerente

La tecnología es útil. Util es McTux://
www.mctux.com

CL CAMINO VALDERRIBAS, 34
E-28038 Madrid
Tlf/Fax: (+34) 91 501 10 90

In a free world, Who needs windows or gates?

_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs



--
Mit freundlichen Grüßen

Siegfried Puchbauer



--
Mit freundlichen Grüßen

Siegfried Puchbauer
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs@lists.rubyonrails.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs

Reply via email to