Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

unbind and rebind

$
0
0

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 ?


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>