raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
2006-May-18 20:35 UTC
more that 5 time beats for effect.pulsate
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});
thanks again
rag
On Thursday 18 May 2006 13:35, raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org 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 ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org http://ipaction.org/ -- defend your rights to fair use _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
2006-May-19 07:57 UTC
Re: more that 5 time beats for effect.pulsate
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, raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org 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 ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org > > http://ipaction.org/ -- defend your rights to fair use > _______________________________________________ > Rails-spinoffs mailing list > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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?
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, raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
<raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org>
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,
raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org 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 ++
kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org
> >
> > http://ipaction.org/ -- defend your rights to fair use
> > _______________________________________________
> > Rails-spinoffs mailing list
> > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
>
--
Mit freundlichen Grüßen
Siegfried Puchbauer
_______________________________________________
Rails-spinoffs mailing list
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
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
<siegfried.puchbauer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
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, raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
<raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org> 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,
raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org 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 ++
kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org
> > >
> > > http://ipaction.org/ -- defend your rights to fair use
> > > _______________________________________________
> > > Rails-spinoffs mailing list
> > > Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
2006-May-19 20:09 UTC
Re: more that 5 time beats for effect.pulsate
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
<siegfried.puchbauer-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> 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, raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org
<raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org> 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,
raul.andres-Dk5a5gKDBemh6J55Ss3d3w@public.gmane.org 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 ++
kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org
>> > >
>> > > http://ipaction.org/ -- defend your rights to fair use
>> > > _______________________________________________
>> > > Rails-spinoffs mailing list
>> > >
Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.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?