I am using the effect moveby to move a div, I would like to be able to set the value of a variable when the effect is finished currently I have an options object that I am passing to the moveby effect - with no joy, it does not work I am sure that this is possible though I have not found it on the documentation code sample below: var menu = $(''treeWrapper''); var opt = {onComplete:function(request){tweeing=false;alert("tween off");}}; new Effect.MoveBy(menu, 0, 225, opt); $(''ctrl'').innerHTML = "Hide demo panel<br />" + "<a href=\"javascript:toggleTree2();\">tree toggle</a>"; thanks in advance > Sam
On 02/09/05, sam sherlock <sam.sherlock@gmail.com> wrote:> var menu = $(''treeWrapper''); > var opt > {onComplete:function(request){tweeing=false;alert("tween off");}}; > > new Effect.MoveBy(menu, 0, 225, opt);It is afterFinish, not onComplete (and there is no request made, but afterFinish gets the effect as a parameter). Bye, Martin