ok very thanks Siegfried
my solution to more that 5 times beats:
i replace '10' to 'pulse_times' in transitions.pulse
Effect.Transitions.pulse = function(pos,pulse_times) {
return (Math.floor(pos*pulse_times) % 2 == 0 ?
(pos*pulse_times-Math.floor(pos*pulse_times)) :
1-(pos*pulse_times-Math.floor(pos*pulse_times)));
}
Now already i need stop a effect, just before effect, not last effect ;-)
with your code:
line : new Effect.Puslate(element, { afterFinish: this.action.bind(this) });
error: Effect.Puslate is not a constructor :-(
any idea? where i put your code? say me
thanks again
rag
> 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
>> > > [email protected]
>> > > 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
>> > [email protected]
>> > http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>> >
>>
>>
>>
>> --
>> Mit freundlichen Grüßen
>>
>> Siegfried Puchbauer
>>
>
>
>
> --
> Mit freundlichen Grüßen
>
> Siegfried Puchbauer
> _______________________________________________
> Rails-spinoffs mailing list
> [email protected]
> 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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs