1 Reply Latest reply on Aug 3, 2013 9:08 AM by resdesign

    unbind and rebind

    Sportingersen

      Hello,

       

      I dont realy get the rebind thing. I have two buttons with mousover, mousout and click events. On click event, i unbind all three events from the clicked button. when i click the secound button, i would like to rebind the events for the first button. My approch on click event for the secound button is this:

       

      sym.getSymbol("Button2").play("click");

      sym.$("Button2").unbind("mouseout");

      sym.$("Button2").unbind("mouseover");

      sym.$("Button2").unbind("click");

      sym.$("Button1").bind("mouseout");

      sym.$("Button1").bind("mouseover");

      sym.$("Button1").bind("click");

       

      unbinding works, but i cant rebind the events. What am i doing wrong ?