ok thx for you help David

2009/2/18 david <david.brill...@gmail.com>

>
> Hi brendan,
>
> For the bug of the afterFinish, I already have that kind of problem.
> So I just delay a little (normally the time of one frame should be
> enough) the code that should be normally execute.
>
> What I recommend is to wrap all call to scriptaculous inside a
> function, so you could easilly handle the variable to know if an event
> is in action or not.
> And to reset this value, as I say use the afterFinish callback, and
> delay execution of code.
>
>
> --
> david
>
>
> On 18 fév, 12:10, Brendan O Connor <brenda...@gmail.com> wrote:
> > ye there is only one small issue
> >
> > the afterFinish has a bug and is actually called before the
> > Effect.Transitions.sinoidal is executed.
> >
> > If you know of a solution for that then I can listen for the other events
> in
> > the before and afterFinish
> >
> > 2009/2/18 david <david.brill...@gmail.com>
>  >
> >
> >
> > > Hi Cob,
> >
> > > I don't think there is a already done way to do that, I personnaly use
> > > a common function and when effect is executing, set a variable and
> > > test the variable so new effect while be launched or not.
> >
> > > But If you cannot do that, you can use the before effect callback to
> > > test the variable and cancel or not the effect.
> >
> > > Or as you do, just queue effect and launch them one after another.
> >
> > > --
> > > david
> >
> > > On 17 fév, 18:05, cob <brenda...@gmail.com> wrote:
> > > > Hi
> >
> > > > Im using Effect.Transitions.sinoidal to bring in a div with menu
> > > > options. Ive set the durattion time to .6 of a second
> >
> > > > While the div is transitioning in , if the user mouseover another
> > > > javascript event there is a stutter in the transition event.
> >
> > > > Is there a way to freeze all other javascipt events while until the
> > > > trasition is finshed
> >
> > > > move function
> >
> > > >     moveRight : function(mvePan,xCo){
> > > >         menuFrag.mveFlag = "r";
> > > >         var myCallBack =  menuFrag.toggleMenuImg("out");
> > > >         if(menuFrag.scrollCnt >= menuFrag.maxScrollPans){
> > > >             return false;
> > > >         }else{
> >
> > > >             menuFrag.scrollCnt = menuFrag.scrollCnt + 1;
> > > >             new Effect.Move(mvePan, {duration: .5,
> > > >                 x: xCo, y: 0, mode: 'relative',
> > > >                 transition: Effect.Transitions.sinoidal
> > > >             },{queue:'front'}, {afterFinish:myCallBack});
> >
> > > >             new Effect.Appear('form1:menuFrag:menuButPan', {
> duration:
> > > > 0.8 },{queue:'end'});
> >
> > > >         }
> > > >     },
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" group.
To post to this group, send email to prototype-scriptaculous@googlegroups.com
To unsubscribe from this group, send email to 
prototype-scriptaculous+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to