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 -~----------~----~----~----~------~----~------~--~---